Hi Satish!

Give this a try:
puts ie.select_list(:id, 'SelectList1').value

Hope this helps!

-Tiffany

On May 4, 3:54 pm, satish <[email protected]> wrote:
> Hello,
>
> I am working drop down lists...(select_list).
> I want to know what is currectly selected. Both 'getAllContents' and
> 'text' is returning all of them available in drop down box. I just
> need a item that is currently selected.
>
> puts ie.select_list(:id, 'SelectList1').getAllContents
> puts ie.select_list(:id, 'SelectList1').text
>
> If any one know this please let me know.
>
> Appreciate your help.
>
> Thanks
> Satish.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to [email protected]
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~----------~----~----~----~------~----~------~--~---

Reply via email to