Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

Hi Friends, I have an issue like the describe below: I'm using QTP and I'm testing on SharePoint. As you knoe, SharePoint has a customize function for user, so that, If I add an object Web Table at the first time, that object was recognized by "index" and "html tag", after that, if someone change the display of web part, the "Index" of my object was changed as well and QTP unable to select that Web Table. Can you guide me how to identify or anyway to keep that Web Table object as unique object? Thanks a lot.

2945


How will you convert a given number to long in vbscript?

830


How will you get a string with the specified character the specified number of times in vbscript?

959


Hi All, I am facing one problem in QTP. There is link object in my application that exist in the Frame in mozilla firefox. Click event on that object is not working but once the frame is enabled/activated then click event works fine.But the frame does not have the activate property. This problem is coming in firefox only. Regards

2650


Mention what is the main difference between function and sub-procedure?

973


how to write codings in QTP using vb script. please help me. i am new to QTP. it is easy or very much tough. please tell me

14035


Why is error handling required?

961


how to automatically update the sql server2005 database records when insert in vb6?

1885


how to increase the values in text box in a given text box increament by two values by clicking on button

2122


Which respective symbols are used to separate a line and to break the lengthy statement into multiple statements in the vbscript language?

1226


Which object is used to work with the excel sheets in the vbscript language and what statement is used to create this object?

912


Could Anybody Please tell me What is the script for Find 3rd Largest element in the Array without using a SORT function int Find(int arr[], int size); Thanks in Advance..

2398


how to set one column as primary key in QTP and fetch values accordingly

2261


create a form to accept username and password validate the username and password with using message box, display the corresponding user message

2581


How will you release the memory acquired by an array variable in vbscript?

1166