Questions tagged as 'selenium'

1
answer

How to select a field and type in it with selenium?

I'm trying to select the input field but I'm not getting it. Error Traceback (most recent call last): File "C:\Users\Pichau\Desktop\Teste.py", line 7, in <module> elem.clear() File "C:\Python27\lib\site-packages\selenium\webdr...
asked by 03.05.2018 / 22:26
1
answer

Does not find element with findElementById

Expensive, I'm trying to fill two text fields (login and password) of a particular page. Using the following code. (Both by byID, bySelector, none works) driver.findElementByName("usuario").SendKeys MyLoggin When debugging the code, when...
asked by 28.02.2018 / 16:46
1
answer

Select option select

Expensive, I'm trying to select an option on a select with the following code and I can not find a solution. I can find the element, but do not tell it to select X option. I'm locating with the following code: driver.findElementByXPat...
asked by 01.03.2018 / 23:14
1
answer

Error recognizing WebDriverWait

I'm running a unit test in C # with Selenium WebDriver and when trying to enter the code WebDriverWait it is not found. > I'm using the namespaces below and still do not recognize them. OpenQA.Selenium; OpenQA.Selenium.Chrome; System.T...
asked by 05.09.2017 / 17:26
1
answer

Select an option from the drop down menu Selenium Python

I have a menu that has several options, I want to select only the one that is active. When I give 'variable'.find_element_by_id (' key ') Selenium returns me ALL options. Does the active option have a "selected" marker, as I point to this seleni...
asked by 13.07.2017 / 19:52
3
answers

How to get the text of a span?

For example, in this line of code I need the "x + 10 = 10". Does anyone know how to do it? <span class="task" onclick="loadExercise(201)" id="task201">x+10=10</span>     
asked by 30.11.2016 / 20:16
1
answer

Find element that ID is generated randomly

I have a situation that the id always keeps updating randomly ... and without an apparent orderimpossible I use find_element_by_id The component is as follows: <table id="treeview-2234-record-879" data-boundview="treeview-2234" data-reco...
asked by 18.01.2016 / 18:50
1
answer

Click button does not work [closed]

I have a button made in ext , that it should open a window when Selenium clicked, but it does not happen, I'm doing it as follows. from selenium import webdriver from selenium.webdriver.support.ui import WebDriverWait import...
asked by 13.01.2016 / 18:01
1
answer

Enable Flash Player with JUnit

Good afternoon. I'm trying to enable Adobe Flash Player in Chrome's Headless, but I'm not getting it. Follow my code: public class testes { @Test public void inicializa() { ChromeOptions options = new ChromeOptions();...
asked by 03.12.2018 / 17:59
0
answers

How do I make selenium (jUnit) switch between open windows?

When I click the button, the browser opens a new window, I look for the element in the open window and can not find it. I think he has not changed to the new window and is still looking at the old window. Error:    org.openqa.selenium.NoSu...
asked by 31.10.2018 / 13:44