webdriverwait

Using Selenium in Python to enter currency format text

回眸只為那壹抹淺笑 提交于 2020-07-23 05:18:05
问题 Trying to enter the value "100000" into a web form using Selenium in Python, but it is consistently not working no matter how I try to send it. I apologize for my lack of knowledge about the terminology. I will try my best but I am self-taught and a novice. Also, I apologize but I cannot tell you the website or my employer would not be very happy. The box on the webpage is automatically populated with a dollar sign. I know that the box in the web form is expecting an integer in currency

How to click on GWT enabled elements using Selenium and Python

醉酒当歌 提交于 2020-07-23 04:56:17
问题 I'm working with Selenium as a newbie and also as a newbie developer. I try to solve this XPath but with no results that is why I'm looking for help. So I want to click in the checkbox which has a dynamic id but it is not that easy to find this checkbox based on tittle="Viewers" Please notice there is a whole list of checkboxes with names on right from a checkbox in div which I want to include in my tests. HTML: <span class="row-selection"><input type="checkbox" value="on" id="gwt-uid-2215"

How to click on GWT enabled elements using Selenium and Python

ⅰ亾dé卋堺 提交于 2020-07-23 04:55:11
问题 I'm working with Selenium as a newbie and also as a newbie developer. I try to solve this XPath but with no results that is why I'm looking for help. So I want to click in the checkbox which has a dynamic id but it is not that easy to find this checkbox based on tittle="Viewers" Please notice there is a whole list of checkboxes with names on right from a checkbox in div which I want to include in my tests. HTML: <span class="row-selection"><input type="checkbox" value="on" id="gwt-uid-2215"

How to click on GWT enabled elements using Selenium and Python

与世无争的帅哥 提交于 2020-07-23 04:54:32
问题 I'm working with Selenium as a newbie and also as a newbie developer. I try to solve this XPath but with no results that is why I'm looking for help. So I want to click in the checkbox which has a dynamic id but it is not that easy to find this checkbox based on tittle="Viewers" Please notice there is a whole list of checkboxes with names on right from a checkbox in div which I want to include in my tests. HTML: <span class="row-selection"><input type="checkbox" value="on" id="gwt-uid-2215"

How can I verify text is bold using selenium on an angular website with C#

好久不见. 提交于 2020-07-15 09:02:25
问题 I am trying to verify whether text is bold or not, within a free text area. When I select the element, I cannot verify the text part. I have tried using .getCSSValues as per the duplicate link suggestion but it doesn't work as it doesn't get the 'text' of that freetext area, which is a string. The freetext area is an element. IWebElement isBold = _driver.FindElement(By.TagName("p")); isBold.GetCssValue("font-weight"); But the font weight returns "400" regardless of whether the text is bold or

WebDriverWait is not waiting for the element I specify

蓝咒 提交于 2020-07-10 06:21:29
问题 I am trying to get my code to wait for an element to appear before trying to get the text from the element. If I step through the code allowing the element time to appear it works as expected, but if I run it without breakpoints the wait appears to be ignored and an exception is raised. I don't understand why it is being ignored? WebDriverWait wait = new WebDriverWait(driver, TimeSpan.FromSeconds(30)); IWebElement message = wait.Until(driver => driver.FindElement(By.ClassName("block-ui

Selenium - Send keys to input password in a shadow-root (open) and multiple iframes for Norwegian BankId

倾然丶 夕夏残阳落幕 提交于 2020-07-09 07:32:16
问题 I want to do automatic testing using test data from here with Norwegian BankId. But I can't get hold of the input field using Selenium. What I try to do: Go to https://www.banknorwegian.no/ Click on "Logg inn" Click on "BankID på mobil." Click on "BankID" under "Alternativer for innlogging" Enter "02105892090" (test user from above link) and click on "Logg inn" Enter "02105892090" again in the "Engangskode" and click on the submit button. HTML: <iframe frameborder="0" width="100%" height="100

How to move to the next page on Python Selenium?

寵の児 提交于 2020-07-03 07:46:57
问题 I am trying to build a proxy scraper for a specific site, but I'm failing on move to next page. This is the code that I'm using. If you answer my question, please, explain me a bit about what you used and if you can, please, if there are any good tutorials for over this kind of code, provide me some: from selenium import webdriver from selenium.webdriver.chrome.options import Options import time options = Options() #options.headless = True #for headless #options.add_argument('--disable-gpu')

WebDriverWait for multiple conditions (OR logical evaluation)

故事扮演 提交于 2020-06-28 04:12:28
问题 Using python, the method WebDriverWait is used to wait for 1 element to be present on the webpage. How can this method be used without multiple try/except? Is there an OR option for multiple cases using this method? https://selenium-python.readthedocs.io/waits.html 回答1: Without using multiple try/except{} to induce WebDriverWait for two elements through OR option you can use either of the following solutions: Using CSS_SELECTOR : element = WebDriverWait(driver, 10).until( EC.presence_of

Angular drag & drop with HTML5 not working through Selenium and Python

▼魔方 西西 提交于 2020-06-23 18:05:41
问题 My code does not working on demo AngularJS Drag and Drop list: http://marceljuenemann.github.io/angular-drag-and-drop-lists/demo/#/simple from selenium import webdriver from selenium.webdriver.common.action_chains import ActionChains import time import os driver = webdriver.Firefox() driver.get("http://marceljuenemann.github.io/angular-drag-and-drop-lists/demo/#/simple") time.sleep(2) source_element = driver.find_element_by_xpath('/html/body/div[2]/div[2]/div[2]/div[1]/div[1]/div[1]/div/div[2