Hey Thanks...
this works Current_item = Listbox(:id,’blah).getSelectedItems[0] the value option doesn't works Shiva On Thu, May 14, 2009 at 7:24 PM, Darin Duphorn <dduph...@redbrickhealth.com>wrote: > My bad, you want to get the current value correct? > > > > Current_item = Listbox(:id,’blah).getSelectedItems.to_s > > > ------------------------------ > > *From:* watir-general@googlegroups.com [mailto: > watir-gene...@googlegroups.com] *On Behalf Of *Darin Duphorn > *Sent:* Thursday, May 14, 2009 8:51 AM > *To:* watir-general@googlegroups.com > *Subject:* [wtr-general] Re: How to fetch the Selected Item in a ListBox > > > > Try this > > Listbox_Items = Listbox(:id,’blah’).getAllContents > > > ------------------------------ > > *From:* watir-general@googlegroups.com [mailto: > watir-gene...@googlegroups.com] *On Behalf Of *Pallavi Sharma > *Sent:* Thursday, May 14, 2009 8:40 AM > *To:* watir-general@googlegroups.com > *Subject:* [wtr-general] How to fetch the Selected Item in a ListBox > > > > Hi > > I want to fetch the selected item in a list box , tried the > selected_options() > > but it doesnt work gives "sele.rb:4: undefined method `selected_options' > for #<Watir::SelectList:0x33235f4> (NoMethodError)" error > > > can anyone here help?? > > > Thanks > > > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Watir General" group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~----------~----~----~----~------~----~------~--~---