Hey Darin!

I was just wondering if there's a problem modifying the variable with
the to_s in the object specifier or if maybe 'label' is some kind of
reserved keyword or variable.  That's why I suggested changing the
variable name and modifying it outside of the object identifier.

-Tiffany

On Jan 8, 2:44 pm, "Darin Duphorn" <[email protected]>
wrote:
> That actually what I'm using
>
> $ie.label(:text,label.to_s).exists?  
>
> -----Original Message-----
> From: [email protected] [mailto:[email protected]] 
> On Behalf Of Tiffany Fodor
> Sent: Thursday, January 08, 2009 3:43 PM
> To: Watir General
> Subject: [wtr-general] Re: if $ie.label(:text,label.to_s).exists? - Assertion 
> Error
>
> I'm just curious....
>
> Does this work if you assign label.to_s to a variable first and try to
> locate the label?
>
> labelText = label.to_s
> $ie.label(:text, 'labelText').exists?
>
> -Tiffany
>
> On Jan 8, 11:29 am, Moochie <[email protected]> wrote:
> > if $ie.label(:text,label.to_s).exists?
>
> > I'm getting assert_exists:  Unbale to locate element, using :text,
> > "Text Value"
>
> > Are you unable to check if a label exists using text attribute?
>
> > Thanks,
>
> > DD
--~--~---------~--~----~------------~-------~--~----~
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