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

Any one knows an Institute in Hyderabad where "Robot Test Automation Framework" is taught? Please email me: test.kvrm@gmail.com

0 Answers  


Anyone aware of Test Runner (ETL Automation Testing tool) if so please help me with material in keerthi.smile14@gmail.com

0 Answers   NTT Data,


How could the web element attributes be inspected in order to use them in different locators?

0 Answers  


wat would be the parameteries for ul testing for web applilcation

0 Answers  


What is Automation Testing Framework

5 Answers   Covansys,






Where will you maintain information like url, login, password?

0 Answers  


List some advantages and disadvantages of manual testing.

0 Answers  


What are the main attributes of test automation?

0 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,


how to write ciertification in QTP?

0 Answers  


Give some examples for performance test tools?

0 Answers  


what is the advantage and dis-advantages of using framework ?

0 Answers  


Categories