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
Join us in building a kind, collaborative learning community via our updated Code of Conduct.

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

-2
votes
1answer
9 views

How to Reorder elements in a list of webelements

I have a list of WebElements as List<WebElement> element = ul.findElements(By.tagName("li")); I need to reorder the webelements present in the list. How can achieve this? After reordering ...
6
votes
4answers
114 views

In Page Object pattern, aren't we creating over-specialized methods than generalized functions?

Background: In the selenium UI automation for years we all are using Page objects pattern as the "Best Practice" however we can gain the same level of abstraction(if not better) with a well-defined ...
0
votes
1answer
36 views

Answering a multiple choice questions with round robin fashion using selenium

I have a scenario like, answering a multiple choice question. I need to answer the 1st question with 1st option, 2nd question with the 2nd option and so on.. in round robin fashion. Any suggestion, ...
0
votes
1answer
37 views

Pop up handling in Selenium using try and except block gives a broad exception warning

try: if browser.find_element_by_xpath('//[@id="s"]/a').is_displayed(): browser.find_element_by_xpath('//*[@id="s"]/a').click() browser.switch_to.default_content() ...
-1
votes
3answers
38 views

How to click on the image inside a grid using selenium webdriver?

I have to click on an image inside a grid. Grid elements have dynamic ID's. Therefore it's impossible to capture elements as usual. How can click on this image? I have boxed the image I ...
0
votes
0answers
3k views

ElementNotVisibleException: Message: element not visible Selenium in Python

I'm trying to click an options from a website dropdown menu but I am not able to click. I am using "xpath" locators for the element and I upgraded my chrome to the latest version for chromedriver. ...
0
votes
0answers
15 views

Display unknow error in eclipse

I have make 3 function for blank data,invaliddata and validdata. I have user autoit for the upload the the file from the window. At the debug time script is run properly but at the run time it ...
0
votes
1answer
51 views

What should be the approach to test styles using Selenium

In my UI tests I would like to verify particular style values for the elements. Below is the example list of the styles I'd like to verify: font style font size padding margin Is there a way to do ...
0
votes
1answer
29 views

Failed To Launch IE Driver Using Selenium WebDriver?

I am trying to execute the selenium web driver script in IE browser but I got this error? can any one provide the solution. Code : import org.openqa.selenium.WebDriver; import org.openqa.selenium.ie....
-4
votes
0answers
25 views

Please anyone help me out with this as I am not able to click add to cart button [closed]

package flipkart_pack; import java.util.concurrent.TimeUnit; import org.openqa.selenium.By; import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebElement; import org.openqa.selenium....
0
votes
1answer
43 views

Unable to capture the alert in Selenium using Python

I am trying to test a web portal using Selenium and Python. The problem is, I am unable to get around an error, in other words, I am unable to catch the alert. Scenario: Search for a user, if the ...
0
votes
1answer
27 views

Selenium 2.53.1 now working with latest Firefox versions?

My organization is stuck on Selenium 2.53.1, and we test using compatible Firefox 46.0.1. I recently accidentally ran a test with Windows 10, Selenium 2.53.1 and Firefox 61.0.2, and the test ran fine....
1
vote
1answer
25 views

Link accessed thru selenium works in Chrome but not in IE?

I have encountered an issue for UI elements on IE browser. The link doesn’t respond to Selenium click commands. The same commands works fine on chrome browser. I have used Actions also, but same ...
0
votes
2answers
39 views

How to parameterize locator in Selenium

I am new to selenium, And In my scenario I need to select a product for list of products in the page. And Product name to select is a test data. Now my query is,Can I create Object in Class level ( ...
0
votes
1answer
42 views

How to resolve InvalidSelectorException in Selenium?

selenium.common.exceptions.InvalidSelectorException: Message: invalid selector Unable to locate an element with the xpath expression .//*[@id="Toolbar"]/table/tbody/tr/td[2]/a[1]/span)[3] because of ...
1
vote
1answer
22 views

Integration of selenium test case with embedded device test case

I am currently working in embedded system testing. We have a wifi module by which the web application can be accessed for the connected device. There is already an automation system using Lua script ...
0
votes
1answer
17 views

How to run multiple test cases sequentially in NUnit Console Runner

I'm trying to run nunit3 exe through Jenkins but after building the project, it runs all available test cases parallely. They should run sequetially. I tried where clause in nunit but how it will ...
-3
votes
0answers
20 views

unable to locate tree node element inside frame in dhx layout [closed]

]2 I had tried using xpath but its shows unable to locate element error.
0
votes
0answers
18 views

Cannot run dotnet Selenium app on linux

I created a service that start my dotnet Selenium application on Linux (on Windows all works well) but when I run this command: sudo systemctl start ods.service I get: PAC Support disabled ...
0
votes
0answers
18 views

Not able to run selenium scripts from Jenkins

I am running selenium scripts using eclipse.Now I want to schedule it using jenkins. Which are the jars apart from selenium jars should I place in my project lib folder and what should be the content ...
3
votes
2answers
52 views

Using different sets of page objects with the same selenium tests

[This is cross-posted from StackOverflow - https://stackoverflow.com/questions/51702719/using-different-sets-of-page-objects-with-the-same-selenium-tests] I'm working on a selenium test suite for a ...
1
vote
0answers
16 views

What software testing tools can be used to test the media content like Video content loading in the web page

What software testing tools can be used to test the media content like Video content loading in the web page. Mainly for an e-learning content like of Udemy's. Video-playback and loading needs to ...
0
votes
1answer
24 views

Is it possible to define set [ i ] in java and extract i th row from excel to that set? I checked this a lot in net but couldn't find

// Assigning values to set from sheet1 1 st row data from columns 4 and 5 to a listofIntends[1], 2 nd row data from columns 4 and 5 to a listofIntends [2], and so on till // listofIntends[10] ...
3
votes
3answers
97 views

Taking screenshots using the Java Selenium webdriver

For taking a screenshot in Selenium, does it support only the PNG format or will it also support the JPEG format? Which is the default one image format for taking screenshot in Selenium and ...
0
votes
0answers
16 views

Parallel execution of selenium test cases using Junit 5.3

Junit 5.3 will support paralell execution: https://junit.org/junit5/docs/snapshot/user-guide/index.html#writing-tests-parallel-execution I currently have a suite of selenium test cases using Junit 5....
0
votes
1answer
43 views

Good way to update automation skills with experience in selenium+c#

I want to update my automation skills with experience in selenium+c# working as an Automation QA. I am particularly interested in courses in the London area or online courses I can take to remain up ...
0
votes
2answers
28 views

Launch FireFox custom profile with geckodriver in java

I'm trying to launch a Firefox profile with add-ons in it, with selenium v3.12 and gecko-driver v2.10 and Firefox version 60.0, how-ever it seems that the custom profile is not working. below is my ...
-1
votes
1answer
36 views

How to write automation code for Auto suggest search box to fetch all the displayed values and click one by one

import java.util.List; import java.util.concurrent.TimeUnit; import org.openqa.selenium.By; import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebElement; import org.openqa.selenium....
0
votes
1answer
36 views

How to deal with parent and child iframes

I have a sceanrio 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
2answers
49 views

Is there an open-source Selenium Webdriver Test Automation Framework that's already available in the market?

I've been practicing Web Automation for a year now. This may sound funny , but, is there a Test Automation Framework for Selenium Webdriver? (Java binding). Like, when you set up the framework, it ...
0
votes
0answers
18 views

Automation testing regarding to Polymer 3 web app

Has anyone here has any experience in testing any web apps written in Polymer 3 yet? My company is coming out with a build with a web app that is built using Polymer 3, and I might be tasked in ...
1
vote
1answer
29 views

How to control TestNG to iterate all Tests in each iteration instead of iterating individual tests before moving on to the subsequent test

Problem - I have 6 tests and one dataprovider with 2*2 object array. I want TestNG to pick first data, use it in First test and then subsequent tests are executed based on the data picked in first ...
1
vote
1answer
43 views

Selecting usernames from a list using selenium

This is the code I have used so far: username = browser.find_element_by_id("field67041336") email = browser.find_element_by_id("field67041337") mobile = browser.find_element_by_id("field67041338") ...
1
vote
0answers
44 views

How to handle password alert pop up (Windows Security) on IE?

The pop up is not the traditional alert. It looks like this pop up. Basically Windows Authentication system. I have tried the classical alert handling technique (alert.sendKeys()) and the one using ...
1
vote
1answer
32 views

Selenium - How to interact with elements on Iframe

Im tring to find elements on iframe. But I'm unable to. Here is my code and error I'm getting. Here is my Script: public class Add_Lists { public static void main (String []args) throws ...
0
votes
1answer
45 views

Unable to get text of an element

I have selenium Test case to validate contents of 2 web pages. The issue, I am facing is I'm not able to get anything from element.getText(). I'm using below code. driver1.get("https://some url"); ...
0
votes
2answers
51 views

Verify Text using CSS or Xpath

I am new to automation, Selenium Web Driver and am practicing code using Amazon. I want to verify my logged in user name (Hello, Nichole) on the Amazon Home Page but anything I enter using CSS or ...
0
votes
1answer
59 views

Getting Invalid Element State Exception

I am trying to clear text from <div> section using XPath using the below line. Clear Element Text xpath=//*[@id="intro-overlay"]/div I am getting below Error: ...
0
votes
1answer
67 views

Locating Inner Text with CSS or Xpath in Amazon

I am teaching myself automation with Selenium web driver, and thought a good way was to learn off an ecommerce site such as Amazon. I am trying to locate inner text with CSS and used the following to ...
0
votes
1answer
39 views

How to inspect a element in a drop down menu in chrome and firefox?

The problem here is when we hover the mouse over the particular menu item, drop down items going to visible. When trying to click the inspect element the drop down items are not going to be visible. ...
0
votes
1answer
107 views

Selenium Webdriver TestNG (Java) using While loop for all tests

I am new to Selenium Webdriver Testng and trying to Develop Data Driven framework using CSVReader I have 5 tests in Testng and have to run those all on different environments. So basically I have to ...
0
votes
2answers
38 views

How to get count of dynamic 'div's' nested inside a each 'td' tag?

I have table which have several <td> tags, again these tag have nested <div> tag. But the number of <div> are dynamic. Means, for each <td> tag number of <div> are ...
0
votes
1answer
51 views

Selenium with C# “Element is no longer valid” exception being thrown when repeating steps

I am repeatedly getting a very annoying problem when automating my test cases using Selenium/C# in Visual Studio. This test is designed around validating search criteria text. In order for me to test ...
1
vote
3answers
50 views

How to have Selenium tests which also verify the database information?

I’m now relatively well versed in using Selenium when it comes to UI testing, but there is one area which I’m not too confident on which I haven’t seen covered much in the courses I have taken, and ...
0
votes
0answers
13 views

Jenkins Job vs Jenkins Pipeline

BACKGROUND : We have one Selenium automation project which is shared in BitBucket repository. Project is maven project. we have 10 testng.xml files for all modules OVERVIEW: Now we want to trigger ...
0
votes
0answers
36 views

How to drag and drop the image using dragAnddrop() in javascript using selenium webdriver?

Without using test framework i have to write this test case to drag and drop to upload the image. please help me if any one know this stuff.If any framework is available also let me know please.
0
votes
1answer
41 views

How to upload an image selenium webdriver with javascript?

driver.wait(until.elementLocated(webdriver.By.css('div.border-right:nth-child(2)')), 1000) .then((element) => { element.click(); }); I am using java-script for my test cases. I had an issue to ...
1
vote
0answers
31 views

Runners for cucumber tests

I've reached the point now where we need to get my automated checks running as part of deployment scripts to act as regression tests. I've not done this before and I'm thinking the way I currently ...
-2
votes
1answer
113 views

Selecting a second player is not working, while automation

I am automating my app. App is a commentary app. I am selecting 3 players and clicking on their respective positions. Here I am able to select the first player and its position, but unable to select ...
0
votes
2answers
74 views

Need the same set of chrome extensions on browser page running under webdriver

When I run atomated tests with WebDriver using Chrome browser there is only one extension displayed on the page chrome://extensions/ - Chrome Automation Extension: But there some more extensions ...