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 |
Use for questions involving problems with automated tests. Relevant for designing test automation, debugging test automation, automation tooling questions, and questions about when it is appropriate to automate. Questions regarding specific tools should tag those tools as well.
4
votes
how to get the count of elements in list box
Try this , storing all the Web elements of Select list in a List and then getting its size.
List<WebElement> optionCount = driver.findElements(By.xpath("//select/option"));
System.out.println(option …
2
votes
5
answers
19k
views
Retrieving xpath from stored webelement variable
I am using page object model. Here is XPath that I have written for Heading of the page and stored it in the heading WebElement variable:
@FindBy( xpath = "//div[@class='page-title category-title']") …