Make sure this works:
$ie.label(:text,"Reported by").exists?



----- Original Message ----
From: Moochie <[EMAIL PROTECTED]>
To: Watir General <watir-general@googlegroups.com>
Sent: Monday, November 3, 2008 11:05:27 AM
Subject: [wtr-general] Using multiple attribute type to locate label tags?


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