The below fails when I use multiple attributes :text and :index.

def get_label(page,label,index)
  case page
     when "Some Page"
       case label
          when "label"
            label_id = $ie.label(:text=>"Reported
    return label_id

#This Fails
puts label_id

I'm able to do this when one of the attributes isn't text.

label_id = $ie.label(:id=>"Blah",:index=>index)

Thanks for the help.

You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to
Before posting, please read the following guidelines:
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at

Reply via email to