views:

221

answers:

1

I Need to select a category from a list box with no of items on it. eg. Videos(29). I need to select this and in the next loop it will be "Videos(30)","Videos(31)" etc..

Tried the followings

Addselection with "//option[@value='4641']", Storeselectedoption,
selenium.click, selenium.doubleclick etc..

A: 

I found Solution:

Tried the following its successful.

String ct1 = selenium.GetText("//option[@value='4641']"); selenium.AddSelection ("ctl00_mainContentPlaceHolder_lstCategory",ct1);

Vijay Prasath