Hey there! any question in your mind? Ask It Now!.

Popular Categories

How to select a drop down in selenium web driver?

+1 vote
asked in Software Testing by krish Expert (6,310 points)

i have a web application ,their some dropdowns are their and want to automate them.

I am trying 



But not working.

1 Answer

+2 votes
answered by seleniumGuru Expert (4,570 points)
selected by krish
Best answer

you should use select class like this :

      Select select = new Select(driver.findElement("By.id("ID")"));
commented by krish Expert (6,310 points)
thanks it works :)

Related Questions

Not a Member yet?

Ask to Folks Login

My Account
253 Folks are online
0 members and 253 guest online
Your feedback is highly appreciated