How to select a value from a list box by using Selenium
web-driver?

Answer Posted / elite

We need to get all options using String[] options = Selenium.getSelectOptions
and use selenium.select(options[2]) which will select second option

Is This Answer Correct ?    1 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain about adodb.stream class?

593


how to check whether link is disabled in QTP??

5631


while using Keyward driven framework in QTPif new requirements are added how to manage it...plz ans

1569


Hello Guys, If any body looking for "worksoft certify tool training in bangalore", please contact me aimansaud@gmail.com

1046


What are lbound and ubound in the vbscript language?

609






can anyone send me a vb scripts code for clicking on a link and coming back on home page again does the same for many links on a web page.

1843


I have attended Anovatek Software QTP interview. They will give us computer and one web based application with QTP. We have to automate some records (already updated records or new records) using QTP Data driven testing. But we should use for loop? Can any one know how to do data driven testing using For loop?

1550


How will you get a random number between 0 and 1 in vbscript?

719


What is the purpose of folders object of scripting.filesystemobject class in vbscript?

872


why variable name should not exceed 255 characters?

1822


Explain the tristate constants in vbscript?

561


What is the difference between function and procedure?

575


when we use filter funtiom invb script(QTP)

2304


What are the 2 ways to pass a value to the function?

518


1.I want to establish connection with excel and also want to fetch the data using SQL queries. 2.the code should be written in such a way that in future if I want to migrate from excel to MS excess database , then there should be minimal changes.

1522