How do you get all the values from Drop Down list?
Answer Posted / chetan phani.j
If the dropdown list box is developed by using Select tag then we can use Select class.
ex:
WebElement adrs=d.findelementBy.id();
Select sal=new Select(adrs);
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What are testing types supported by selenium?
What is the difference between selenium and qtp?
What kinds of tests can be run with the selenium framework?
Mention when to use autoit?
What is the difference between getwindowhandles() and getwindowhandle()?
What are the different ways of locating a web element in selenium?
What is testng and how is it better than junit?
What is fluent wait in selenium?
When should one use selenium grid?
How can you mark a test case as failed by using soft assertion?
What / supported operating system platforms Selenium?
How is a statement different from verification?
How a text written in a text field could be cleared?
How to connect a database in selenium?
Explain how you can find broken images in a page using selenium web driver?