How do you get all the values from Drop Down list?
Answer Posted / raam
----------------------------------------------
Select cel=new Select(driver.findElement(By.id("name"))
cel.selectByVisibleText("state")
---------------------------------------
instead of selectByVisibleText can use-
selectByindex()
getoptions()---used to store all options inside drop down
Is This Answer Correct ? | 8 Yes | 3 No |
Post New Answer View All Answers
What are the different mouse actions that can be performed?
What is the difference between borland silk and selenium?
What is the difference between single and double slash in xpath?
What selenese command and argument can be used to transfer the value of a javascript variable into a side variable?
What do you know about Selenese?
Explain me how to handle alerts in selenium webdriver?
Which files can be used as data source for different frameworks?
Explain how you can capture server side log selenium server?
In selenium what are breakpoints and startpoints?
How to launch a browser using selenium webdriver?
What could be the cause of the selenium webdriver test to fail?
Mention what is desired capability? How is it useful in terms of selenium?
what are the four parameter you have to pass in selenium?
How do you handle alert popup?
How is selenium different from qtp?