Bret,
When you user browser.text, can you figure out if the text is visible?
I used the pagecontainstext to start with, but it would identify text
that was invisible on the page.
Thanks,
On Oct 13, 9:45 am, Bret Pettichord <[EMAIL PROTECTED]> wrote:
> Have you looked at browser.text? Personally, I always use this (or the
> text method on something more specific). I find the pagecontainstext
> method confusing.
>
> Bret
>
>
>
> bugs apple wrote:
> > Hi, all
>
> > As we known, pagecontainstext method could check the text that
> > contained current page, including the values in the object
>
> > maybe the pagecontainstext method was designed like below,
> > if (ie.getDocument.body.innertext =~ /#{text}/) != nil
> > puts true
> > else
> > puts false
> > end
>
> > but, that is not my expect, I only want to check the pure text, as the
> > label displayed on page, which is not belong to any object value or
> > dropdown/select list item.
> > who can provide some good way to check the text?- 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
-~----------~----~----~----~------~----~------~--~---