Tell us how to select a value in a dropdown?



Tell us how to select a value in a dropdown?..

Answer / Monika Rani

To select a value from a dropdown, first find the dropdown using an appropriate locator (e.g., by ID or XPath), and then use the `selectByVisibleText()` method of the WebElement interface, passing the desired option's visible text as an argument.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Automation Testing AllOther Interview Questions

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

2 Answers  


How to login into any site if it's showing any authentication pop-up for username and password?

1 Answers  


What COM Interfaces u r using in QTp While Connecting QC or TD? Or in QTP?Any body plz urgent...

1 Answers   FIC,


best institute for tesing tools in hyderabad?

8 Answers  


What is the different between GUI map and GUI map files?

1 Answers  


What is in-house tool?

1 Answers  


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

1 Answers  


Does Microsoft Corporation, Sun Microsystems possesing any maturity levels?if yes, what is that level?

1 Answers   CTS,


how to write ciertification in QTP?

1 Answers  


what types of documents we need to write the nonfuntional test scripts?

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


What automating testing tools are you familiar with?

0 Answers  


Categories