How do you select the 2nd item in a List box or drop down
through selenium RC (Java)

Answer Posted / sunil

we can use index property to select the 2nd value from the drop down.
selenium.click(index,1) as index starts from 0

Is This Answer Correct ?    3 Yes 12 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How many test cases have you automated per day?

557


Tell me how could the web element attributes be inspected in order to use them in different locators?

562


Hi all, Do anyone have the experience in PDF Document Automation using OLE objects and methods? If so suggest the best websites for source. Thanks :-)

1521


What is client side validation? Write a snippet.

610


Tell me what is the testng.xml file used for?

527






What is test automation?

1670


I am new to Test Complete ,can any one suggest me the steps to create/Record and replay a test in Test complete 6....

1927


whether flash selenium supports to test Gaming application? like follows: identifying the images, dynamic animations, Dynamic value changes field and win conditions etcc..,

1494


What all things can you automate?

582


How the object properties will be recognised by the tool If the functions/ statements are written manually?

1747


How do select which automation testing tool is the best for you?

530


List out some of the automation tools which could be integrated with selenium to achieve continuous testing.

465


Hi, here r some questions, which were asked in Ekaplus, plz process these questions. 1. How we connect with the version?

3383


How could you explain the main difference between webdriver and rc?

522


What is the difference between automation tools and management tools?

545