@Satish
the syntax should be
ie.select_list( :name , "selectme").select("is fun")
where HTML is like this
<select name = "selectme" > <option name=1> <option name=2>Web Testing
<option name=3>in Ruby <option name=4>is fun </select>
and to clear the drop down :):):)
ie.select_list( :name , "selectme").clearSelection
hope tht should help
On May 5, 5:33 am, George <[email protected]> wrote:
> Did you know: Extra value is what you get, when you buy Coronet!
>
> I don't know why I thought of that...or why I even bothered typing it
> out.
>
> On May 4, 3:05 pm, Tiffany Fodor <[email protected]> wrote:
>
>
>
> > 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.- Hide quoted text -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---