Questions tagged [selenium-webdriver]

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

Filter by
Sorted by
Tagged with
0
votes
2answers
1k views

How to deal with parent and child iframes

I have a scenario where I 1st iframe (i.e parent iframe) which has one button on it and clicking on it another iframe gets open (child iframe). I am able to switch to Parent iframe but when I click on ...
0
votes
1answer
36 views

Calculate the time for progress bar is finished and throw warning if it takes too long?

I am automating a file upload on a web page. The point of my automation is to check if the file upload is taking longer than expected. This is the hmtl for the progress upload bar banner: <div ...
1
vote
2answers
40 views

Parallel selenium UI test failure rate has increase when compared to sequential execution

Recently I have implemented parallel selenium UI test execution by increasing Jenkins node count and creating multiple Jenkins jobs with different regression.xml files pointing to them. In a nutshell ...
0
votes
2answers
3k views

How to reliably click bootstrap dropdown with no button element?

I am using Selenium to try and select an element in a bootstrap dropdown menu, but there is no button element present. The website uses all JavaScript to enable the dropdown. The HTML code for the ...
0
votes
1answer
78 views

2 times drop-down menu selection in a row with RSelenium

I am trying to scrape this website. I got a problem with text fields because text fields and drop-down menus combined. The site does not allow to enter the names of cities directly. For example, I ...
1
vote
3answers
4k views

How to bring elements to view automatically in Protractor or selenium

I have a webpage to be tested which has a button at the footer of the page. When i click it, there should be an error message shown near to it. I was successful in automating this scenario but the ...
2
votes
4answers
97 views

How to open outlook and click on the link that is there in the mail using Selenium

In my application I need to send a confirmation after which an mail will arrive to my Outlook which I need to open and click on the link which is sent in the mail. Can someone please let me know if ...
0
votes
4answers
2k views

Python selenium grid parallel execution [closed]

How do I run parallel selenium scraper in grid? I wanted to crawl 10 urls , and if I start two Firefox nodes, how do I request the nodes to crawl 5 urls in parallel? I have gone through google, but ...
3
votes
2answers
2k views

How to drag an element and drop it in another frame?

Hope you doing well, I'm trying to dragAndDrop an element from FrameOne to FrameTwo but not able to do so.Please help me to understand the concept and what I'm doing wrong here and need to achieve ...
2
votes
1answer
45 views

Is Cucumber Scenario equivalent to a Java Class?

@Add User Scenario: Add a new User profile in the System Given user is on the Add User profile page Then Add a new user profile in the system Then verify that user has been added successfully Now, ...
0
votes
1answer
37 views

TestNG parallel execution get failed becouse im using same WebDriver on all tests

There is a situation where I have 150 test cases and I have set up Test NG parallel test execution. Unfortunately, I'm using the same web driver which initialized at the test base class on all the ...
0
votes
2answers
89 views

Selenium: How to bypass Cloudfare authentication with Selenium using Java

I am testing an app and as soon as I load the URL it redirects me to Cloudfare access page and asks me to signIn using Google. When I click on Google SignIn it asks for my email address and password. ...
1
vote
3answers
4k views

Access is Denied Issue thrown at ChromeDriver Initiation step

Azure DevOps is triggering and running tests on a VM. All my tests are working fine on local machine. On VM, While trying to launch Chrome browser using ChromeDriver and WebDriverManager, tests are ...
1
vote
3answers
71 views

Selenium - Click on button in the last row of the table

I have the below script where I have taken the list of WebElement of the number of rows and subtracted with and then click on the Add button. But the problem over here is - script clicking on the Add ...
2
votes
3answers
2k views

Encountered Error Could not load type 'OpenQA.Selenium.Internal.IWrapsElement' from assembly 'WebDriver

I'm working in multiple browser testing. It was working code with chrome browser. Recently I have installed "Install-Package Selenium.WebDriver -Version 4.0.0-alpha04". MSedge Chromium and ...
2
votes
1answer
174 views

Selenium WebDriver gives the same window handle across multiple Firefox browser sessions

We use different profiles to test different features of our system. If we open new multiple FF sessions (each with it's own profile), Selenium Webdriver only uses 1 window handle identifier. (pseudo ...
0
votes
2answers
128 views

How can we run only selected testcases from extent.html report in selenium webdriver?

I'am running testng suite and then extent.html report is being generated. Now I want to customize my report like; i should be able to select only failed testcases in my report and then should be able ...
0
votes
1answer
37 views

In the screen how to navigate to the row which contains the text that needs to be Edited and then click on Edit button.Can some one pls guide.NeedHelp

In the screen how to navigate to the row which contains the text that needs to be Edited and then click on Edit button. Scenario: I have a screen where I need to find the row which has the value as &...
1
vote
1answer
78 views

Caused by: java.lang.NoClassDefFoundError: org/openqa/selenium/WebDriver

I've added all JARS configured chromedriver. Why this error is coming "Error: Unable to initialize main class Practice.test1 Caused by: java.lang.NoClassDefFoundError: org/openqa/selenium/...
1
vote
1answer
5k views

How do I enable ChromeDriver to use browser cache or local storage with selenium python

I was trying to automate a website and it's a PWA. I need the caching data for this site as it takes too long to load, once loaded it's pretty fast. But every time I run my scripts chrome starts a new ...
1
vote
0answers
30 views

DOCKER org.openqa.selenium.remote.UnreachableBrowserException on Jenkins

I can run every test locally just fine if I run my test on jenkins, on a docker file, I get this error org.openqa.selenium.remote.UnreachableBrowserException: Could not start a new session. Possible ...
0
votes
1answer
162 views

Able to find xpath, but trying to click button throws exception

I tried to click on an element using the code below but it is throwing Exception: No Such Element Selections WebElement clear=driver.findElement(By.xpath(PageUtility.OPEN_LOCATION_POPUP_XPATH)); ...
1
vote
1answer
106 views

(Ruby) How can I invoke multiples Selenium Webdriver just in one browser POM

I'm a newbie on ruby language... Currently, I am using POM (page objects model) with Selenium webdriver. This is my trouble: As I'm using selenium with POM, I have 3 classes (register.br, login.br ...
4
votes
1answer
1k views

How to use multiple wait conditions in Selenium Webdriver using ruby?

I wanted to know, how I can use following waits in program at which situations? driver.manage.timeouts.implicit_wait = 20 driver.manage.timeouts.script_timeout = 20 driver.manage.timeouts.page_load = ...
2
votes
2answers
3k views

Testing pdf/excel content with C#

Our site has a good number of reports that are using SSRS,Crystal and Excel. We are using C# with Selenium WebDriver. I have been searching for the best practices and best ways and tools to test the ...
1
vote
2answers
39 views

Selenium (Python) is having issues finding and interacting with a button that has formmethod="get" in it

I am attempting to click a delete button but Selenium does not locate it even though a save button next to it is completely intractable. The only difference is the delete button has this in the html &...
0
votes
1answer
152 views

Getting this error when i run my java appium script

When I save and run the code the compiler is showing error with respect to DesiredCapabilities I thought I might have made an error while importing the jar so I uninstalled everything and installed it ...
1
vote
3answers
3k views

How to automate KendoUI dropdown with selenium webdriver and C#

Cannot make it work, need help, I don't know how to automate KendoUI drop-down with Selenium using C#. Sendkeys doesn't work for KendoUI. Here is my HTML: <div style="background-color: #e6e6e6;...
0
votes
4answers
972 views

Selenium Java WebDriver Can not Find Element with xpath

I've a question, how can I capture the xpath in the case below? I tried this: driver.findElement(By.xpath("//*[@id='L2_auto_8']/div/a[1]")); and I tried: driver.findElement(By.xpath(//a[@href='/...
2
votes
2answers
83 views

After Load More is clicked once i get the issue waiting for element to no longer be visible:

I have a Search Screen where after I enter the search criteria and search, a Load More button will display if there are more than 30 records. The problem here is it clicks the Load More button for the ...
0
votes
2answers
4k views

Use Selenium to select an option from an Input element with multi-select drop-down

I am getting this error message when trying to select a drop-down value: UnexpectedTagNameException with message 'Element should have been "select" but was "input" error' The ...
1
vote
1answer
3k views

Exception in thread "main" org.openqa.selenium.NoSuchElementException: Unable to find element with css selector ==

When I am trying to run the below mentioned Selenium web driver code in IE 11 browser, I get below error: Exception in thread "main" org.openqa.selenium.NoSuchElementException: Unable ...
0
votes
3answers
858 views

Getting error : NoSuchElementException - Unable to locate element with ID attribute

I am running this code: from selenium import webdriver from `selenium.webdriver.firefox.options` import Options Setup: options = Options() options.add_argument("--headless") def get_results(...
0
votes
0answers
26 views

How to debug Protractor Cucumber test using Visual Studio Code

this is my launch.json { // Use IntelliSense to learn about possible attributes. // Hover to view descriptions of existing attributes. // For more information, visit: https://go.microsoft....
0
votes
1answer
31 views

How can I handle browser alert

I do not understand how to click allow button. import time from selenium import webdriver chrome_options = webdriver.ChromeOptions() chrome_options.add_argument("--disable-notifications") ...
1
vote
2answers
919 views

Click getting to lower item (under dropdown) instead of dropdown in Selenium

I m trying to click on the dropdown menu item and i am able to select the dropdown and the menu item but instead of clicking on item the click is going to the element right under it. Before the ...
1
vote
2answers
91 views

Strange drop down automation problem - multiple select

I've tried for days to figure this one out. I have a selector that I can't figure out. It seems to be a regular select statement with multiple options but when clicking one option directly it ...
0
votes
1answer
334 views

Error when running a script

I'm new to selenium. I installed all the required Jars, but at the end when I run the script to see if it works, I got an error message. Please help. Code: import org.openqa.selenium.WebDriver; ...
0
votes
1answer
922 views

Selenium - sendKeys() function is not working

I am using eclipse Helios Version: Helios Service Release 1,Build id: 20100917-0705 with selenium 3.141.59 but when I am trying to use this sendKeys() function then it is showing error message: The ...
2
votes
1answer
40 views

Differentiating between two items with the same class name using selenium

As a learning project, I am trying to use selenium webdriver with python 3 to collect my shopping for the week from sainsburys website. At the moment, the script will loop through a bunch of URLs for ...
1
vote
1answer
26 views

On selecting the radio button how to get the text of the selected radio button where the text is in the next column

On selecting the radio button how to get the text of the selected radio button where the text is in the next column I randomly select the radio button and then i need to Store the selected Radio ...
1
vote
1answer
32 views

Selenium Java best practices for handling different languages and locations, and setting dynamic architecture

Im currently working on a platform that has multi-language options and also the language is defined by IP. So Im trying to build an architecture for testing both scenarios dynamically... The domain is ...
-1
votes
0answers
106 views

I have a Dynamic WebTable where i need to select any Two chekbox randomly how to do that

Scenario: I have a WebTable where i go and enter the Search Criteria and based on the Search Criteria the Matching records appears. Then i Need to select 2 checkbox from the table . My Question is - ...
1
vote
1answer
26 views

Cucumber - Accessing injected context in After scenario hook

I'm attempting to refactor a test automation framework I have inherited (Java, Selenide, Cucumber) from one that uses static global state for test data, to context injected test data using ...
4
votes
7answers
44k views

How can I bring Chrome browser to focus when running a Selenium test using ChromeDriver on Mac?

When executing a Selenium test with ChromeDriver, I would like to bring the test browser into focus to see the actions taking place. The way I am able to do that now is by manually clicking the ...
0
votes
1answer
223 views

Firefox throws an error message through WebDriverManager

Firefox is mostly working, but the last test case failed - it won't click on an element. unable to read VR Path Registry is the error message. In Internet Explorer, it loads the browser, sometimes ...
2
votes
2answers
77 views

Is it necessary to Assert web page title in every case?

I am writing a script in Selenium and TestNG to automate Add User profile pages. Now, when I land on every new page, then do I need to write Assert.equals("add user profile", driver.gettitle(...
1
vote
1answer
33 views

Selenium is not finding button even though it has a Class Name and XPath

I am attempting to click a save button but Selenium (with Python) is having issues. I keep getting the error, "Message: no such element: Unable to locate element" Here is the HTML <input ...
1
vote
1answer
456 views

How can I enable variations in Chrome from chromedriver options?

How can I enable variations in Chrome from chromedriver options? Hello, I'm facing a problem with Chrome where when I run an automated UI test with chromedriver, there's issues showing up (such as ...
1
vote
3answers
2k views

How to handle tooltip on onmouseover in selenium java

test case is to show the tooltip message my html code is below <td id="pendingBalance" align="right"> <a onmouseover="displayHelpPopup(this,arrHelp[20][0]);" onmouseout="closePopup();" ...

1
2 3 4 5
96