Most voted "selenium-webdriver" questions
Selenium is one of the most known and used tools today to carry out automation tests acceptance in web applications through the use of the browser.
Learn more…229 questions
Sort by count of
-
0
votes1
answer2564
viewsDoes anyone know how I can Scroll in Selenium Webdriver in JAVA
Code: WebElement emailsecundario = driver.findElement(By.id("RecoveryEmailAddress")); emailsecundario.sendKeys(" [email protected]"); WebElement gravar = driver.findElement(By.id("submitbutton"));…
-
0
votes1
answer42
viewsNull in Baseurl - Selenium IDE - Junit
Good afternoon. I am trying to use Selenium IDE Webdriver and noticed that Baseurl is coming null. I saw some examples on the internet, but I can’t understand why this is happening. You don’t even…
selenium-webdriverasked 8 years ago Fernando 227 -
0
votes0
answers70
viewsWeb Api Calls 2
Well, I have a somewhat boring task that is the handling of Cookies, I make a request by sending as parameter a code that I want to access, my API opens the page with Webdriver, maps and takes the…
-
0
votes1
answer190
viewsI am unable to go to the "main2" frame. VBA and Selleniumwrapper
I am trying to access a web page and manipulate its controls via VBA and Selennium Wrapper, however, these controls are within a frame with the "name = main2", follows the code VBA: Sub z() Dim…
-
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
answer465
viewsAutomated testing to verify an email confirmation
I am creating automated tests with the webdriver Selenium. I need to do a test to see if an email is sent to the user after registering on the system.
selenium-webdriverasked 7 years ago I. Oliveira 27 -
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
votes1
answer61
viewsHow to select an Aria-Controls type element
I have been trying in every way to execute the Weddriver Click() method on the button element //*[@id="pedigree-controls"]/div[2]/div/div/button (destacado em azul (dropbtn)) However, for some…
-
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
answer51
viewsDoes Linq generate this ID? How to recover?
I’m doing an automation using Selenium Webdriver and I’m taking all the elements of a Table. I used the code below: var qntd= driver.FindElements(By.XPath("//*[@id='dataTable']/tbody/tr")).Skip(3);…
-
0
votes2
answers2083
viewsRemove infobar from Chrome when running tests with automated software
I tried to implement the Chrome Options in my script to delete that yellow bar of Chrome information, which is displayed every time we are running automated tests ("Chrome is being Controlled by…
-
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
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
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
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
answer125
viewsPython/ Selenium is not filling the tilde (~)
I’m trying to use Python / Selenium / Webdriver to automatically fill in an entry field on my Chrome page. However, I am unable to use the "send_keys" command to fill the til character (~). Here is…
-
0
votes1
answer404
viewsHow to take data from an object returned by Selenium with php?
I am using Selenium + Chrome Webdriver and php to scrape data from a website and, for that, I need to make a condition with the width of a column of a table of that site. I do it with the following…
-
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
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
answer2254
viewsHow to click on links with Selenium Python
I have this tag <a href="!!!!!!">carro</a> I use the following code do = driver.find_element_by_link_text('carro') do.click() I cannot access, returns the following error:…
-
0
votes1
answer2337
viewsHow to access an iframe using Selenium Python
Does anyone know how I can access an iframe from a web page without the iframe ID and NAME ? I know there’s a command calledswitch_to_frame.
-
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
answers100
viewsDoes not take elements with Selenium in Chrome
I’m trying to get elements from a page but it’s not found. Follow the code of the page: <form method="POST" action="j_security_check" onsubmit="return(OnLoginSubmit());"> <input…
-
0
votes0
answers361
viewsHelp to catch the element by the Selenium xpath
Following code, I need help picking up element in Selenium: Elements name: j_username and name: j_password. <form method="POST" action="j_security_check" onsubmit="return(OnLoginSubmit());">…
-
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
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
votes0
answers168
viewsClick on a field with multiple Selenium results
In my test script, I’m doing a system search that brings me 4 results. I need to make a method that selects only a specific result (in my case the 4th). I tried it this way, but it didn’t work.…
-
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
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
answer33
viewsHow do I click a button if a specific target is there?
Depending on the CNPJ I carry, it generates a new anchor, with a different ID, then I need to click this <a id="menuPrincipal_divLinks3" title="" href="../Relatorio/GerarRelatorio.asp"…
-
0
votes0
answers77
viewsHow to run scripts in F12 by Selenium
I wanted to know how to run a script by F12 ( Developer Tools ) by Selenium, I wanted him to open F12, then I would go to the Console and put the script there, I tried…
-
0
votes0
answers20
viewsProblems to click on pseudo-element with Selenium Webdriver with Java
I am using a site for learning in the study of Selenium Webdriver and need to click the checkbox next to Select Room, but it is a pseudo-element, only when the cursor on ::before or ::after that the…
selenium-webdriverasked 3 years, 9 months ago Leonardo Padilha 1 -
0
votes2
answers120
viewsCreate a variable inside an xpath
I’m trying to create an automation in python - (web scraping) that has a loop in which xpath changes every time you click on the desired location, so I realized that xpath only changes one digit:…
-
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
votes2
answers176
viewsChrome bot error - ERROR:platform_sensor_reader_win.cc
I have a python application that performs some repetitive tasks for me by opening Chrome and using it as a bot (I cannot be making the code available because I work under a confidentiality…
-
0
votes1
answer846
viewsTake print screen when error occurs on Selenium Webdriver
I have a mini bot made in Python that does the scraping of data from Direct Treasure, in short it logs into my account, goes in the statement takes this data and returns a json, which within my…
-
0
votes1
answer2247
viewsHow to make a robot take data from a table in an HTML website
I’m trying to create a database with stock histories extracted from a website. Below is an example of what I’m trying to do. package com.gustavo.seleniumTest; import org.openqa.selenium.By; import…
-
0
votes2
answers169
viewsCode improvement
Hello. I have this code: import os from selenium import webdriver import time def visita(link): try: options = webdriver.ChromeOptions() options.add_argument('--headless') driver =…
-
0
votes1
answer46
viewsError returning a JS function
I’m trying to store an image with JS and is giving an error in return. Error message: VM85:8 Uncaught Syntaxerror: Illegal Return statement I’m doing it for Selenium with C, follow my code:…
-
0
votes1
answer232
viewsHow to define proxy in Capybara
I need to perform my tests, but my work network uses a proxy. What better way to set this up within my env.Rb Below follows my file configuration code "env.Rb" require "selenium-webdriver" require…
-
0
votes1
answer40
viewsNullpointerexception when running a Selenium Webdriver test
I have a certain difficulty in instantiating the driver in another class. What happens is the following: I have two definition classes of steps First: public class TranscricaoSadtStep { static…
-
0
votes1
answer96
viewsNunit error log repeating exceptions - Multiple failures or warnings in test
I am using Nunit to run test scripts with Selenium Webdriver in C# (Visual Studio). The project uses the template Console Application. When running, the project displays a console (prompt) where I…
-
0
votes1
answer199
viewsError Running Test Class
Good afternoon! All right? When running the User Informationtest class, it is showing the following errors: Error:(4, 20) java: package org.Selenium does not exist Error:(5, 27) java: package…
-
0
votes0
answers92
viewsSelenium C# without suitable main method
I’m taking some automation classes with Selenium with the C# language and when I compile asks for the proper main method that I’ve tried in several ways using System; using System.Text; using…