Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [selenium-webdriver]

Used for questions about using Selenium WebDriver, a browser automation framework frequently used to automate testing in a browser.

0
votes
1answer
22 views

How to move element in svg using selenium?

This is HTML code before having the element in svg. After that, I pull a new element from the sidebar into svg and HTML code like that So I want to move a new element to new position in svg. Example:...
0
votes
0answers
8 views

Switch to Frame not working in HtmlUnit Driver

I'm Working with HtmlUnit Driver, however my code works with Firefox or chrome but when I started using HtmlUnit Driver, it works to a point but after that it stuck at the line where I used the ...
0
votes
1answer
26 views

Python Selenium - How to get the “Close” text to click on this button error -Unable to locate element

This is the HTML <button type="button" class="d-block p-3 mx-auto btn btn-danger btn-lg xh-highlight"> <i class="fa fa-close mr-1"> </i> Close </button> And I'm trying with: ...
0
votes
0answers
22 views

how to resolve htmlUnit WrapsDriver Error

I'm running test with HtmlUnit with selenium 3.13 jar, browser launches successfully, but after than it stops working with below error. Exception in thread "main" java.lang.NoClassDefFoundError: ...
3
votes
2answers
56 views

How to find the xpath for the link given below?

Please help me find the xpath for the page https://www.seleniumhq.org/download/ In this page there is a para "Selenium Standalone Server". In that I have to find the xpath for Download version link "...
0
votes
1answer
44 views

how to run same testcase in 2 different URL in selenium JAVA [on hold]

How do I run the same test case in 2 different URL which has same functionality
1
vote
1answer
35 views

How to speed up Java Selenium Script,with minimum wait time

I'm currently working on a java selenium Project, which is usually a small script where I have to check for each element for it's presence and based on that some actions are triggered but our main ...
2
votes
1answer
39 views

Select elements within <div> and <iframe>

We started test automation on our web app (ASP.NET). We should've done it ages ago and the meantime the app has become complex so our Selenium progress is very slow. I'm completely new to Selenium and ...
2
votes
1answer
34 views

How to pass the same webdriver instance between Cucumber tests?

I have a series of steps in a Cucumber-automated test for a web-site. In some cases, I need to pass the Selenium webdriver instance, such that the test can use it to wait until certain elements on the ...
1
vote
0answers
14 views

Code Coverage using Scala Automation Testing for JS web application

I'm looking if there's an existing application or tool that will run code coverage based on a scala implemented automation suite running against a Javascript web application. Our automation framework ...
2
votes
1answer
26 views

Selenium Python queston: How to extract the dynamic id generated?

I have a link inside a table with a dynamically changing id, the xpath being: //*[@id="1544727471470-1-uiGrid-0007-cell"]/a/span/span To its left is a checkbox with xpath: //*[@id="1544727471470-1-...
0
votes
2answers
30 views

How to click on the span type element in selenium?

<span class="tm-button-icon__label taLabel _flex"> <span class="tm-button-icon__text"> Demo </span> <span class="tm-button-icon__inner-description taOption"> ...
1
vote
0answers
17 views

EventFiringWebDriver / WebDriverEventListener invocation order

I'm implementing an EventFiringWebDriver, respectively, a WebDriverEventListener, where I need data both from before and after particular events (e.g. beforeClickOn and afterClickOn). Since I wasn't ...
0
votes
1answer
38 views

Sleeper in Selenium WebDriverWait constructor - what is it for (Java)?

I have checked Selenium documentation and I can see that there are three different WebDriverWait constructors including this (Java): public WebDriverWait(WebDriver driver, java.time....
0
votes
0answers
20 views

Getting error as Type Mismatch [on hold]

package newpackage; import org.openqa.selenium.WebDriver; import org.openqa.selenium.chrome.ChromeDriver; //import org.openqa.selenium.firefox.FirefoxDriver; public class MyClass { public static ...
2
votes
1answer
54 views

How to check if webpages are completely loaded?

I would like to automate the following process: Create a sitemap of a certain domain. Check all pages are up. I don't come up with any good enough tool for the second step. I used to assertion if an ...
0
votes
2answers
31 views

Selenium Element is not clickable at point, button behind other element

I have a site we are testing, but for some reason the screen wraps and puts the 'search' buttons on the right, behind the fields. Like it is wrapping, and instead of being on the button below, it goes ...
0
votes
0answers
29 views

Selenium eBay automation

input from selenium import webdriver from selenium.webdriver.common.keys import Keys def main(): Itemvar1 = input("prompt") driver = webdriver.Chrome(executable_path=r'C:\Users\Michelle\Downloads\...
0
votes
1answer
31 views

How can I prompt for input using Selenium/Webdriver and use the result?

i know this has been asked before but the last time it has been answered was about a year and a half ago main point is i want to from selenium import webdriver from selenium.webdriver.common.keys ...
0
votes
1answer
25 views

Create custom annotations for automation framework

I have over 3 years of experience in Java+Selenium WebDriver+Maven framework. I have people using different annotations applied on functions. These annotations were not part of tool's inbuilt feature ...
1
vote
1answer
29 views

Unable to select element when element is in span than select Selenium c#

I am trying to select an element from dropdown with text as Ad. My page has a telerik dropdown and this is the HTML Code. I am running following code: SelectElement IDdropdown = new SelectElement(...
1
vote
1answer
27 views

RPA tool for automation

Is it a good idea to use TagUI (RPA tool) for website automation? if so what are the merits of using this tool over selenium?
0
votes
1answer
36 views

Verify checkbox without using isSelected method

I can locate the checkbox using xPath but cannot verify if this checkbox is selected using the isSelected() method. I'm using the xPath as //div[@class='Form-field Form-field--spacer']//label[@for='...
0
votes
0answers
24 views

How to Select and read the results after applying filters in Selenium

I have a question, I have an option for selecting the bank transactions for 2 years and when I apply filters all the transactions for those 2 years are displayed in a summary view. I want to expand ...
0
votes
0answers
24 views

Page Factory Null pointer exception

test base public class TestBase { public WebDriver driver; public static Properties prop; public WebEventListener Wl; public EventFiringWebDriver Ef; public void OpenBrowser() ...
2
votes
1answer
32 views

I'm trying to find this element using href value, but selenium is unable to get this value as of now

Current value of href for the login button on this website: https://www.firmex.com is provided below: <a href="https://login.firmex.com/?utm_campaign=login_button_on_firmex&amp;utm_source=...
0
votes
1answer
43 views

(Selenium) Trying to locate Button with Span

I am trying to locate a Button with a span text. I already tried it with the class but the class is used 6 times. HTML: <a href="#" class="btn-orange btn-border" ng-click="selectWorld(w.id)"> &...
0
votes
0answers
32 views

How to automate radio buttons that are not selected by default using selenium java?

In a webpage (HTML below) I have two radio buttons. Neither of them are selected by default. While trying to automate the click event on the button i got this error - "element not find". I did set ...
0
votes
0answers
22 views

Why does my script not working in internet explorer but working fine in chrome

Why do I get following errors to execute script in internet explorer : org.openqa.selenium.WebDriverException: Returned value cannot be converted to WebElement: {stacktrace=, error=invalid session id,...
1
vote
1answer
31 views

How do you press two keys at the same time with Python Selenium?

Trying to do accessibility automation and want to use shift+tab to go back an element. But can't seem to get anything to work. Tried what the doc imply should work based off their "Example, pressing ...
0
votes
1answer
37 views

Selenium go to scrolled element! [duplicate]

I have an element but ı need to go there with scroll how can ı do ıt wıthout scrolling how can ı clıck it?
0
votes
0answers
31 views

What's the maximum number of Selenium webdriver Firefox instances?

I'm working in a project using high number of browser instances. So I'm wondering, what's the maximum number of Selenium webdriver instances for Firefox. Need to say I can control a virtual machine ...
0
votes
1answer
54 views

how to perform click on an element using selenium for which I am getting staleState Exception

Problem: There are couple of radio buttons with the same ID and I need to perform click on these. The first radio button gets the click where the second one is getting StaleElementReferenceException ...
0
votes
1answer
33 views

How do I create log file and store the logs in text file in selenium?

Scenario is for example: I am automating a form (containing text fields, checkbox...) and using log file to print logs. Here i wanted to print the logs in text file. can anyone help me out?
2
votes
0answers
21 views

How to select second value in drop using Katalon Chrome Extention?

I'm trying to make Katalon chrome extension to click the dd/mm/yyyy language. But the problem is when I record the click on dd/mm/yyyy Katalon records xpath=(.//*[normalize-space(text()) and ...
1
vote
1answer
15 views

Multiple remote Safari instances on a single macOS

I need to test multiple separate browser sessions simultaneously (to simulate remote collaboration). This works easily in in Chrome and Firefox but not so in Safari. I keep getting the following error ...
0
votes
0answers
23 views

Selenium Loss of Internet Exception Handling in Chromedriver

I want my code to be able to handle circumstances when the internet goes down for a period. Currently I'm doing it using a try/except clause with a TimeoutException but that isn't working as Chrome ...
1
vote
1answer
33 views

Python Selenium: Unable to locate element

I'd like to download the primary parcel layer from this website. First step is to click the "Add/Remove Item" button, but I am having trouble locating it. For this button, the Inspect Element window ...
0
votes
1answer
19 views

How to change the pip version in pycharm

In pycharm the pip version is showing as 10.1 but when i check the pip version in my CMD it is showing as 9.0.1. I am not able to understand why it is happening. If any one know the reason can you ...
0
votes
1answer
31 views

How to keep a count on number of clicks on a file

I want to move the file downloaded on first click to folder 1 and move the file downloaded on second click to folder 2 using java. How it can be achieved using Java. Can somebody help me ? for (...
0
votes
0answers
19 views

How to work with multiple Windows (each link act as a mainwindow) in Selenium?

I am working with multiple windows in (naukri.com) using Selenium. 1) It opens the website (parentWindow) and same time child windows are opened 2) By using driver.switchTo().window() closed the ...
0
votes
1answer
37 views

Move files from one folder to another based on extension

I have written a program wherein I log into a website and download few csv files (wherein the file names are randomly generated). Now I want to move the csv files from download folder to one specific ...
0
votes
0answers
20 views

Selenium with java - unable to insert text into a sharepoint page

I am unable to insert any text into webelement with following HTML code - <span id="FirstApprover_cbd8f8ed-e6b5-4e65-b534-9ce38c8ec4_$ClientPeoplePicker_InitialHelpText" class="sp-peoplepicker-...
0
votes
0answers
21 views

Unable to select fields in Selenium/Python 3.7

I know how ridiculous this sounds, as this isn't my first time automating anything, but for some reason I'm having a hard time here. The issue is just on this site and with Chrome. This works in ...
0
votes
0answers
25 views

How to set default download directory in application.properties file using QAF Automation framework?

I tried to configure chrome capabilities in application.properties file using QAF Automation framework. I followed the documentation on this page - https://qmetry.github.io/qaf/latest/...
1
vote
3answers
59 views

How to download the csv file using Selenium

I need to download the CSV files from this page but i am not able to do so. PFA the screenshot of the page from where the files has to be downloaded : I have tried the below code but it doesn't work ...
0
votes
1answer
37 views

It is impossible to create a new session Got this error

"It is impossible to create a new session because 'createSession' which takes HttpClient, InputStream and long was not found or it is not accessible" Got this error for running script in selenium.....
0
votes
0answers
41 views

Chrome not reachable on Jenkins

I have a Jenkins master - slave configured on Linux ec2 instance for automation test execution. The three slave instances were created by cloning the master instance. The configurations are as follows:...
0
votes
1answer
42 views

How to embed Jquery script in Java Selenium code

I am automating a process a process where I need to download csv files from a website. I have written a jquery code for that. Can someone tell me how can i integrate this code with my Java selenium ...
2
votes
2answers
78 views

How can we automate the fields if there are multiple data components are present on UI and we need find inside elements

I am new to selenium. following are some info. Can someone guide me to create xpath and this is the approach we are using to maintain the UI elements unique, so for this code, will selenium help to ...