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

List some advantages and disadvantages of automation testing.

0 Answers  


Can Any one tell me the difference between winrunner and test partner or qtp and test partner?

1 Answers   Satyam,


Why automation testing?

0 Answers  


Does the Jmeter will generate any scripts? and anybody suggest with an example. how to use the Jmeter tool and also the How to anayse the Results?

2 Answers  


Hi Friends, I'm testing a SharePoint application by QTP 8.2 I face a problem that really difficult to me, please take a look on the description below: As you may know, SharePoint is an application is allow customize function from user, so that, user can add many web parts and put at any place they like. For ex: if there are two web parts existing in the SharePoint site When I using QTP to recognize a Web Table on any web part, it has the properties as "Index" and "html tag" only. Problem is: If there is any user changes the display of my web part, the "Index" of Web table is changed as well, so that QTP cannot identify exactly my object. Can anyone help me how to make that object as unique or another way to identify that web table object? Hope to receive many solutions from you. Thanks a lot.

1 Answers   CSC,






Which is a very good institute for QTP with VB script training center in kerala.Can you plz help any body

1 Answers  


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

0 Answers  


Manually in a page 10 check boxes is there.so 5 check box "on" and 5 check box "off" so using descriptive program how to know how many "on" and how many "off" plz help me this question answer?

0 Answers   IBM,


Can anyone tell me the correct answer of below question....it is about Bugzilla tool. When bug will find out at the time of executio where it will save or what is the location of bug??

0 Answers   Diya,


How to create stubs? what is the use of Stubs and drivers? who is the responsible person of this?

4 Answers  


Difference between winnrunner and qtp?

2 Answers   Ordain Solutions,


What types of scripting techniques for test automation do you know?

0 Answers  


Categories