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
If the test case frame contains several test cases, how can one execute just the selected one of those test cases?
How to set test case priority in testng?
Explain the difference between confirming and verifying commands?
What is pom (page object model)? What are its advantages?
Explain me what could be the cause of selenium webdriver test to fail?
Tell us what are the two modes of views in selenium ide?
Explain why to choose python over java in selenium?
What is a fundamental difference between xpath and css selector?
What are the different exceptions you got when working with webdriver?
What happens if I run this command. Driver.get(“www.softwaretestingmaterial.com”) ;
What are the operating systems supported by selenium webdriver?
What is the significance of testng.xml?
Explain in selenium ide how can you debug the tests?
What is object repository? How can we create an object repository in selenium?
How to execute javascript in selenium?