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

Answers were Sorted based on User's Feedback



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

Answer / sagar

Its simple Selenium.click("second item ID");

Is This Answer Correct ?    1 Yes 10 No

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

Answer / 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

More Automation Testing AllOther Interview Questions

Tell me what kind of tests should not be automated?

0 Answers  


Difference between winnrunner and qtp?

2 Answers   Ordain Solutions,


What is keyword driven automation?

0 Answers  


Tell us how to select a value in a dropdown?

0 Answers  


What is mean by ARGO testing? can any one please explain

1 Answers  


Can test automation improve test effectiveness?

1 Answers  


you have any interaction with clients?

2 Answers   Mind Tree,


I want a code for a following item in TSL Language. Look up a person in database, If not found, add person to the database.

0 Answers  


What automating testing tools are you familiar with?

1 Answers  


Tell us what is the difference between single slash (/) and a double slash ( //) in xpath?

0 Answers  


Why do you want to keep this kind of information in a separate file and not directly in the code?

0 Answers  


I am looking for selenium RC Training in Hyderabad. can any one tell me the best institute ?

76 Answers  


Categories