Most voted "selenium" questions
Selenium is an integrated development environment for automated test scripts.
Learn more…332 questions
Sort by count of
-
0
votes2
answers86
viewsStalled Selenium test
I have a problem that Selenium stops when a Download appears on my screen (My application that is being tested also for). It stands forever and not from time-out. I wonder if you have how to put a…
-
0
votes0
answers322
viewsWindows authentication with Selenium
I am trying to perform a windows autentation with Selenium, however is presented the error below.. There is another way to perform this type of authentication?…
-
0
votes0
answers377
viewsPython, Selenium and Phantomjs
I’m using Selenium with Python and Phantomjs. I want to click a button from the youtube page, but it always gives an error. Someone can help me?…
-
0
votes1
answer502
viewsPython and Selenium: Syntaxerror: invalid syntax
I am trying to log automatically on facebook with the code below, from selenium import webdriver from selenium.webdriver.support.ui import WebDriverWait import unittest class LoginTest…
-
0
votes1
answer1323
viewsClick on button does not work
I have a button made on ext, that he should open a window when Selenium clicked, but that doesn’t happen, I’m doing it this way. from selenium import webdriver from selenium.webdriver.support.ui…
-
0
votes1
answer154
viewsFind element that the ID is generated randomly
I have a situation that id, always updating randomly.. and without an apparent order making it possible for me to use find_element_by_id the component is as follows:: <table…
-
0
votes0
answers222
viewsHow to check paging in Selenium webdrive - java
Hello, I’m having trouble checking the number of lines, to check whether or not you can make a pagination. I am using - Selenium webdriver - java Thank you.
-
0
votes1
answer72
viewsError when recognizing Webdriverwait
I am performing a unit test in C# with Selenium Webdriver and when trying to enter the code Webdriverwait the same is not found. I’m using the namespaces below and you still don’t recognize.…
-
0
votes0
answers205
viewsIs it possible to run multiple test scenarios at the same time with Selenium Webdriver?
In my tests, one scenario only starts after the other is finished and causes a slow execution of the tests. You can run multiple test scenarios at the same time with Selenium Webdriver?
-
0
votes1
answer196
viewsSelenium Web Driver Phantom JS c# Continue where you left off
I’m developing a robot in Selenium. However, this robot has a time that interacts with the user. However, I cannot make it continue where it left off. Let me give you an example: Pretend that this…
-
0
votes1
answer509
viewsWhat is the best way to scrape the Datasus website in Python?
The link is this: http://tabnet.datasus.gov.br/cgi/tabcgi.exe?sih/cnv/nrbr.def I’m trying to send a POST through requests with a dictionary containing the categories I want, but then the URL remains…
-
0
votes1
answer371
viewsDoubt about Eclipse + Java Selenium
I made the following code to perform a simple login test using Eclipse + Selenium: package memoriavirtualWebTesteFuncional; import org.openqa.selenium.By; import org.openqa.selenium.WebDriver;…
-
0
votes1
answer483
viewsDoes not locate element with findElementById
Expensive, I am trying to fill two text fields (login and password) of a given page. Using the following code. (Both by byID, bySelector, neither works) driver.findElementByName("usuario").SendKeys…
-
0
votes3
answers1426
viewsFind element without tag ID and Name
Expensive, I need to locate the element that does not contain id and name in HTML. Below is the HTML example <button type="button" class="btn btn-primary ng-scope" data-ng-if="novo2()"…
-
0
votes1
answer233
viewsSelect
Expensive, I am trying to select an option in a select with the following code and am unable to find a solution. I can locate the element, but not tell it to select X option. I’m tracing with the…
-
0
votes2
answers684
viewsClick on button inside an iframe
I’m using Selenium to test a page but the button I need to click is inside an iframe that is inside a frame. this.wait.until(ExpectedConditions.elementToBeClickable(By.id("corpo"))); WebElement…
-
0
votes0
answers751
viewsExtracting two information via Selenium and pasting into only one cell in excel
I’m trying to extract some web information Via Selenium, the point I’m catching is this: I can direct the information from Selenium searched on the internet and save it within a specific cell, but…
-
0
votes1
answer1001
viewsHow to capture the td of a web page using Selenium vba?
html code looks like this: <table> <tr> <td width="01%" class="tex3b"><img height="14" src="/imagens/tm_bullet.gif" width="6"></td> <td width="20%"…
-
0
votes1
answer56
viewsHow to simulate a click on Linkedin with Selenium. Problem: dynamic id / uses Ember
Good morning, I’m trying to click the 'Show more' button in the field of skills but without any success. Xpath is dynamic, and by class also does not work. The button seems to be hidden somehow. I…
-
0
votes1
answer333
viewsaccess menu with over effect. Selenium VBA
I am having problems accessing an "interactive menu" using the Selenium library in VBA. follows html code of the page: <html> <head> <meta http-equiv="Content-Type"…
-
0
votes0
answers173
viewsHow to get the <span> text? but when you have an <img> in that <span> error!
The following code picks up the span, but if he has a img presents an error. user = driver.find_element_by_xpath('//span[@title = "{}"]'.format(names)) user.click() My system picks up the title of…
-
0
votes1
answer61
viewsDifficulty capturing element. Webdriver with C#
I’m having trouble capturing information from a span. I tried several ways (ID, Xpath, Csselector) but there is no way. If anyone could shed some light, I’d appreciate it. This is the image of the…
seleniumasked 5 years, 7 months ago Tarso da Rosa 1 -
0
votes1
answer70
viewsLocation of pseudo-elements (xpath)
Good morning, everyone! I have the following scenario (print attached). In order to automate my test, I would like to locate the message "Product successfully Added to your Cart" in my test through…
-
0
votes1
answer128
viewsChromedriver on MAC - Eclipse/Intellij
I have the following problem: I am now with MAC and can no longer run my automation. I already downloaded Chrome for MAC, but still get the following error: java.lang.Illegalstateexception: The…
-
0
votes1
answer545
viewsPyautogui for virtual keyboard
I am working on a project using Python 3.7 and the Pyautogui library. I have a website that needs to login using the mouse to type on a virtual keyboard. The problem is that the keyboard changes…
-
0
votes3
answers1305
viewsValidate element in Selenium Webdriver
I have a certain test, where I programmed to put some plates and then to it click on the button (forward) and then on the button (finish). Only that depends, by the fact that it has some plates that…
-
0
votes0
answers549
viewsHow to pick an element with the same properties on a page?
I’m wondering how to get an element of the kind that repeats itself inside the same page. I tried using the following Xpath’s that were validated on Firepath, but I was unsuccessful when I ran my…
-
0
votes1
answer427
viewsSearch CLASS element with value in space
I am doing an automation with Selenium C# and the only standard reference of the tag is a class referenced by other classes: <div class="slds-form-element slds-form-element_readonly"> I’ve…
-
0
votes0
answers35
viewsSelect2 selector implementation with Selenium Webdriver
I am new with automated testing and Selenium Webdriver (c#), currently I am doing a test where there is a Select2 field, need to know how to implement for my test look at this field and select a…
-
0
votes1
answer215
viewsClick() problem in an input with Selenium
I’m developing an automation that makes a Choose file in an input, but when I click on the element: driver.FindFirstElement(By.Id("chooseFile")).Click(); and every time the error returns to me:…
-
0
votes1
answer61
viewsMethod [Test] not found after build
When I do the build from the script below, does not return any error; however, build does not locate the test method [Test], and I can’t execute it. My script is object oriented: calls the class…
-
0
votes2
answers969
viewspython & Selenium - wait download finish to close the browser
How can I just close the webdriver when my download is finished. Time Sleep didn’t help me much because times vary a lot. follows my code: ExportCSV = WebDriverWait(driver, 10).until(…
-
0
votes1
answer301
viewsRecover link when using click() from Python
I need to recover the url address when clicking on the link, I am using Selenium with chrome_options.add_argument("--headless") My current code: links =…
-
0
votes2
answers1177
viewsSaves browser status or cookies using Selenium
I’m doing tests using the web Whatsapp, so every time I run Selenium, read the qr code and start the tests, and I have to do this every time, I’d like to know if there’s a way to save the state of…
-
0
votes2
answers4733
viewsOpen and close multiple tabs in Python browser
Hi, I need some help. I need this script I have (Python and JS) to open a certain number of tabs and after a time interval close and reopen the same tabs again. However, to not close the browser, I…
-
0
votes1
answer181
viewsPython strip() function malfunction
I have a list in a file, where each line has a user agent (with " at the beginning and end of each line), which is used in a later part of a program, to perform automated tests using Selenium. When…
-
0
votes1
answer167
viewsHow to use the Javascript pdf.js library in Selenium with Java via the Javascriptexecutor clase
I found this library that does exactly what I need, extract the text from the PDF and turn into a String. http://git.macropus.org/2011/11/pdftotext/example/…
-
0
votes1
answer1013
viewsHow to fit the geckodriver for use of Selenium?
In Python 3 and Ubuntu, I want to run a test with Selenium: from selenium import webdriver from selenium.webdriver.firefox.firefox_binary import FirefoxBinary from time import sleep binary =…
-
0
votes1
answer3769
viewsHow 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…
-
0
votes3
answers1171
viewsDropdown Selenium C#
I am trying to select a dropdown with Selenium C#, but as we can see in the HTML below there is no "ID" or "Name", below the code of how I am doing, could help me? <select…
-
0
votes1
answer47
viewsWrong location with Chrome and Firefox
I’m capturing the Location of an image element. When I search for Phantom, it brings the correct X/Y coordinates, but if I do it through Chrome or Firefox, it gives another Location and then I can’t…
-
0
votes1
answer680
viewsHow to turn Selenium into an executable (python)
I went to make a bot with Selenium, and on my machine ran smoothly until the executable, but when passing to a friend’s machine is giving a boring error and I can not solve. from selenium import…
-
0
votes1
answer167
viewsWebdriver not error but also does not open the browser
I tested a simple code to make the webdriver open Chrome, and was successfully executed, but the code below not error, but does not open the browser. from selenium.webdriver.common.keys import Keys…
-
0
votes1
answer295
viewsScraping using Selenium and Beautifulsoup
I’m trying to make a Crap on a book blog, I need to get the titles and categories of all the books posted. In the first attempt, I got an Attribute Error, which should happen several times because…
-
0
votes1
answer1152
viewsPython webdriver Selenium does not find the item on the page after loading
I am having a problem when searching for an item inside a page, this item is loaded after loading the page via ajax or iframe, there is some way to create a condition for the script to wait until…
-
0
votes1
answer102
viewsPython/Selenium - Webscrapping, click
Hello, I started to study Python a little bit and I’m doing some tests with Lenium and I came across an error in which I am not able to solve. I’m trying to click a button on a website but the…
-
0
votes2
answers152
viewsHow to recover the second text in a validation with Assertequals
I have that code: And I’m trying to retrieve the text "Test Automation". then I made the following code. WebElement idMenu = navegador.findElement(By.id("dropdown-menu-profile")); String…
-
0
votes1
answer1053
viewsUsing Selenium how to select two different elements that have the same ID?
My attempt with xPath or by ID was unsuccessful. var options = new ChromeOptions(); options.AddArgument("--disable-gpu"); var chromeDriver = new ChromeDriver(options);…
-
0
votes1
answer98
viewsError Selenium python, cannot find element
I am trying to use Selenium to make a python script to automate Twitter login. However, I am always getting this error: Unable to locate element. Any page element appears this error, I try to find…
-
0
votes0
answers20
viewsHow to write date and current time in Selenium
I would like to know how to include the current date in PT/BR format as in the example: 21/07/2021 and a specific date such as: 01/01/2020 from selenium import webdriver from…