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
How you can convert any selenium ide tests from selenese to another language?
What is same origin policy and how it can be handled?
Can you write the code to double click an element in selenium?
In selenium what are breakpoints and startpoints?
How will you verify the specific position of an web element
What are some expected conditions that can be used in explicit waits?
How to handle a dropdown in selenium webdriver?
How can we launch different browsers in selenium webdriver?
What are the ways to refresh a browser using selenium webdriver?
How to debug the tests in selenium ide?
Can we use selenium rc to drive tests on two different browsers on one operating system without selenium grid?
Mention what is intellij?
How to test ajax application with selenium?
Tell us how to perform right click using selenium webdriver?
How to delete browser cookies with selenium web driver?