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

Explain how you can switch back from a frame?

592


How would you test your element locator?

568


How you build object repository in your project?

590


What are the different components of selenium?

637


How to check a checkbox in selenium?

620






What is the difference between @factory and @data provider annotation?

617


What are the different types of annotations which are used in selenium?

540


Why to choose python over java in selenium?

591


What is the difference between single and double slash in xpath?

685


What is the use of @listener annotation in testng?

578


How to developer selenium test cases?

591


What is regular expressions? How you can use regular expressions in selenium?

602


What is the difference between poi and jxl jar?

595


How to type text in a textbox using selenium?

579


Explain xpath.

637