hi, u can try this ary=$ie.select_list(:name, "ctl00$header1$AddLocations1$lstAvailable").getAllContents() $ie.select_list(:name, "ctl00$header1$AddLocations1$lstAvailable").select(ary[0].to_s)
u can compare this.. hope it will work. regards shalini gupta On 5/29/07, Željko Filipin <[EMAIL PROTECTED]> wrote:
On 5/29/07, sapna <[EMAIL PROTECTED]> wrote: > > Please let me know how to store in a variable the content of the list > box and use that variable to compaire with the default value. Sapna, It would help if you post relevant html snippet when posting question. For example, I do not know what do you mean by list box. I will assume that you have this <select> <option value ="volvo">Volvo</option> <option value ="saab">Saab</option> </select> and you want to get contents. You can do it like this: ie.select_list(:index, 1).getAllContents => ["Volvo", "Saab"] Zeljko -- ZeljkoFilipin.com _______________________________________________ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
_______________________________________________ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general