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
by",:index=>index)
       end
    end
    return label_id
end

#This Fails
puts label_id

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

#Works
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 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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~----------~----~----~----~------~----~------~--~---

Reply via email to