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 programming language is best for writing selenium tests?
what are the testing frameworks used in selenium?
where do u maintain all your test cases in manual not in selenium
What are the different components in selenium?
Is selenium capable of handling windows pop-ups?
what are challenges you faced in your last project?
What are the technical limitations while using selenium rc?
How to find the xpath of web table elements.in chrome or internet explorer.or without using fire bug.?
What is the use of driver.get("url") and driver.navigate().to("url") command? Is there any difference between the two?
What are the different types of wait statements in selenium webdriver? Or how do you achieve synchronization in webdriver?
Tell me how to verify tooltip text using selenium?
How can we find the value of different attributes like name, class, value of an element?
Define selenium 2.x?
What are the important selenium ide commands or selenese commands?
What is selenium 2.0?