How do you get all the values from Drop Down list?
Answer Posted / p sureshchowdary
Select dropdown=new Select(d.findElement(By.id("month")));
List<WebElement> list=dropdown.getOptions();
for(WebElement we:list) {
System.out.println(we.getText());
}
Is This Answer Correct ? | 5 Yes | 0 No |
Post New Answer View All Answers
Can you run the tests registered with Selenium IDE in other browsers?
Name an api used for reading and writing data to excel files?
Tell us what kinds of test types are supported by selenium?
What are the advantages of pom?
What are the test types supported by selenium?
What are the programming languages supported by selenium webdiver?
What is the framework?
What is selenium 1.0?
What are various ways of locating an element in selenium?
What are the uses of findelement() and findelements()?
From your test script how you can create html test report?
What is the automation test?
How to handle ajax calls in selenium webdriver?
What is a data driven framework?
sorting java array