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
-~----------~----~----~----~------~----~------~--~---

Reply via email to