Selenium Java Help
Home
Selenium Webdriver
Coming soon
Coming soon
Coming soon
BDD CUCUMBER
Coming soon
Coming soon
Coming soon
Web Service Testing
Soap UI
By using JAVA code
Test Management
SubMenuItem
SubMenuItem
SubMenuItem
VIDEO Tutorials
ERRORS & Sols
Tuesday, 23 April 2013
How to manage drop down with selenium webdriver
List dd = driver.findElement(By.name("_sacat")).findElements(By.tagName("option"));
for (WebElement option : dd) {
System.out.println(option.getText());
if ("Consumer Electronics".equalsIgnoreCase(option.getText())){
option.click();
break;
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment