Search Results
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 |
Used for questions about using Selenium WebDriver, a browser automation framework frequently used to automate testing in a browser.
18
votes
Accepted
What to look for in code reviews / pull requests?
Here are the top 37 things I check for in Code Reviews
All Code Reviews
DRY code
Code has tests
Linter is being used
English readable code
Lines are not too complex
Typos for spelling and grammar
Met …
18
votes
How can Internet Explorer 5 be emulated in 2020?
Another approach (or part of one).
Before proceeding ask for a sign-off on a document that clearly states the security risk this presents to the organization and its customers and that they acknowledg …
17
votes
Accepted
How to make selenium tests more stable?
I have struggled with this issue in several companies. It always seems to come up at some point and then be a major issue over time.
I too have walked the path of sleeps, polling waits, check for aj …
14
votes
How can Internet Explorer 5 be emulated in 2020?
Look around on the internet, e.g. ebay, for Windows machines that are 15-20 years old.
I don't like this answer but given the crazy situation I am suggesting it.
9
votes
How to handle dynamic changing ID's In XPath?
Use other elements and attributes for partial and combination matches
Generally in these cases of database backed and changing ID's in web element selectors your options are to look for one or more o …
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 …
6
votes
How should automation maintenance be handled? (Selenium)
To make your selenium scripts work well with a changing product do the following:
Use good css identifers. Use ID when available. Avoid layout tags such as TABLE, H3, etc. Avoid css styling such …
6
votes
What are best practices for cross browser/platform testing?
Multi-device/browser testing strategy
Above all else:
Know your user population and the devices they use and the way they use them
Determine if your focus is manual or automation testing as they have …
6
votes
Accepted
What is the hierarchy to use for finding elements - ID, class, name, xpath?
My main criteria is readability and maintainability.
Speed has never been as issue for me. There's other parts of the test frameworks I use that have much more significant speed issues.
The basic id …
5
votes
Accepted
Why should we use javascript for UI test automation?
Yes - For Unit Testing Javascript
I've been working with this concept over the last few years and I've come to the following, multi-tier approach:
Unit testing on the backend. For example with Ruby …
5
votes
How to click a link when more than 1 exists?
When there are multiple instances and there is no other way to distinguish them* you can refer to the instance index, i.e. 'which one'.
CSS
a.instanceLink:nth-child(1)
or
a.instanceLink:nth-child …
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
5
votes
How to get max character count for input fields with selenium webdriver
You can find the field and get the maxlength attribute
max_length=find('input#id').getAttribute('maxlength')
In the IDE I think it would be something like this to store it in 'x':
<td>storeAttribu …
5
votes
Canonical way to define page objects/locators in big enterprise level automation projects?
It will depend on your circumstances.
Generally I consider categories such as:
common identifiers used throughout the application. Examples may include login, logout, help, submit button, etc.
ide …
5
votes
Selenium web driver - how to select child elements
Using xpath to locate an element works regardless of the parents of the element. It doesn't matter if the parent is an li or a span, as long as your identifier is unique. So if you are using a CSS I …