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

Can anybody would u like to tell the details of Automation Framework, with example. and also give preferable books. sites. Thanks in Advance.

2 Answers  


Mention a few good practices while performing automation testing.

0 Answers  


Tell me how a text written in a text field could be cleared?

0 Answers  


How can we make one test method dependent on other using testng?

0 Answers  


Simplify the term defect severity.

0 Answers  






what is the framework your fallowing in your organization while using automation tool ?

0 Answers   ADP,


Hi all I need QA automation testing interview questions. pls help me in this topic. The interview is related to verification & validation of web based products. ( i want questions based on this topic ) where can i find interview questions realated to this? This is urgent requriment for me. pls share your inputs. any kinda help appreciaed. warm regards Lina.

0 Answers   Rogers,


ihave one doubt in manual testing? what is the testing process

1 Answers   DELL,


What is Ticketing tool? Has it any other names? What is the purpose of this?

0 Answers  


Do you know what is the purpose of deselectall() method?

0 Answers  


Can the activities of test case design be automated?

0 Answers  


test cases test wheather window? test cases to test calculaor? test cases to test a reverse string program? test cases to test program{ int.parse(sting str) $return (int)}? test cases to test program{display string length}?

0 Answers   Adobe, Microsoft,


Categories