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


Please Help Members By Posting Answers For Below Questions

How to write in a text box using Selenium?

513


What is the main disadvantage of implicit wait?

523


How we handle pop-up web-based ?

545


Tell us how you can use recovery scenario with selenium?

475


How does one store the current url using selenium 2.0?

500






Do you know a way to refresh the browser by using selenium?

464


How to type text in a textbox using selenium?

504


what is mutation testing, Difference between system and End to End testing,Give examples of bug having high priority but low severity except spelling mistakes and logo symbol.

1496


How you can login into any site if it’s showing any authentication popup for password and username?

542


What is robot api?

543


What you know about selenium?

527


How to scroll down to a particular element?

3156


How to highlight element using selenium webdriver?

454


selenium can handle pop-up windows based on selenium is a test tool?

644


How to handle browser (chrome) notifications in selenium?

478