Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options answers only not deleted user 8992

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

1 vote

Same screenshots taken for a series of steps in selenium webdriver

What may be happening here is that the navigation itself is failing, e.g. Visit Home. Take screenshot Try to visit page 1 but there is an issue with the link or the form and you are still on the ho …
Michael Durrant's user avatar
1 vote

How to select an element whose id/number is dynamic and keeps changing

You can use //table/td/span/b as TushaGT suggests However this will easily lead to problems if: you have more than one table you have more than one td (almost certain) you have td's with more t …
Michael Durrant's user avatar
0 votes

Is there a preferred programming language for working with webdriver?

It's hard to recommend without more information. At a high level I would say: Avoid Ruby (my preferred language btw) due to lack of use generally in the programming community. However if your shop …
Michael Durrant's user avatar
5 votes

what is the difference between //span and //*?

The difference is that //* selects any element and //span select elements that are within a span tag
Michael Durrant's user avatar
1 vote

CSS vs XPATH vs ID

This comes up repeatedly. My answer is that all the studies I have seen have shown that the difference is trivial in comparison to the actual UI test suite run time. For example when the run time is …
Michael Durrant's user avatar
0 votes

The address wasn’t understood Firefox doesn’t know how to open this address

Are you missing a } here: compositeAction.perform(); } <------- } ? It is missing in your code but maybe it is partial code.
Michael Durrant's user avatar
2 votes

How to check if username exist before adding in the system using Selenium Webdriver and C#

Two choices: Black box. If you don't have access to the program environment and don't have the ability to check behind the scene with database calls then you need to do what a regular user would do …
Michael Durrant's user avatar
3 votes

How make to get tests to pass reliably when run together as a suite?

This usually indicates that you either have dependencies between tests or you have data storage that doesn't get reset and affects other tests. Work to make sure that tests are completely independent …
Michael Durrant's user avatar
-1 votes

How to make Selenium Tests for touchscreens

Selenium doesn't handle that part, I suggest you look at Appium for mobile devices - it handles more then just mobile. https://appium.io/docs/en/drivers/windows/ Appium has the ability to automate W …
Michael Durrant's user avatar
2 votes

Scalable alternative to Selenium Grid

At my last employer we were unable to use selenium grid. I can't remember what the reason was. As an alternative we used CircleCI with 4 servers and it worked well, balanced the tests well between th …
Michael Durrant's user avatar
0 votes

Unable to locate frame inside another frame

Instead of using switch frame, try using a selector that also takes the frame into account. My problem with frames has always been that I am unaware that they exists and/or I don't have them in the s …
Michael Durrant's user avatar
0 votes

How to identify a given WebElement is before or after another WebElement using Java Selenium?

If this is about the DOM... Xpath is your friend and this (relative addressing) is the main case where you choose to use xpath over css (css being often preferred for readability. The key feature th …
Michael Durrant's user avatar
7 votes

How to select an element whose id is dynamic and keeps changing

there is no unique attribute present (No unique class, no unique name) & the id keeps on changing after every login so cannot take id also. This is a very common issue with many applications th …
Michael Durrant's user avatar
3 votes

how to get the window title name when its open in new window with document file

Use switchTo() window Use switch window to switch to the window you want, then perform the test on that window. Windows and Tabs are used interchangeably. Example from above site of using an itera …
Michael Durrant's user avatar
0 votes

CSS or Xpath for href element with number

Specify the link you want to click. It works for me, e.g.
Michael Durrant's user avatar

1
2 3 4 5
10
15 30 50 per page