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
Tell me could cookies be deleted in selenium?
How do you upload a file?
How you can debug the tests in selenium ide?
List some of the test types that are supported by selenium.
How to insert a comment in selenium ide?
What are the advantages of using selenium as a test tool?
How does one capture a page title in selenium 2.0?
What is difference between qtp and selenium?
How you build object repository in your project?
What is soft assertion in selenium?
What are the advantage and features of selenium ide?
When to use assert, verify and waitfor in selenium?
What automation tools could be used for post-release validation with continuous integration?
How to send alt/shift/control key in selenium webdriver?
What are the webdriver supported mobile testing drivers?