Hi,
That would certainly make me happy! This causes problems in my testing.
I guess there is a way to code this using verifyXPath, which has the
advantage over verifyText that it will handle DHTML updates to the style. If
we can figure out the correct XPath then I guess that could be made into a
custom step initially, and then perhaps a standard one.
regards,
John
On Sat, Feb 16, 2008 at 3:05 AM, Christoph Witych <[EMAIL PROTECTED]> wrote:
> Hi Marc, hi all,
>
>
>
> <verifyText> will yield true if the searched text is in the page. So far
> so good. I face the problem that this behaviour will the same even if the
> text is sorrounded by a <div style="display: none"> so that it is apparently
> not displayed by the browser and therefore invisible for a human being.
>
>
>
> Does it make sense to add an attribute, for example named
> "ignoreHiddenText" (default: false, not to affect existing tests. Better
> default: true, which would be more intuitive) so that webtest only finds
> text, that is visible in the browser?
>
>
>
> Or better write a new tag <verifyDisplayedText> that ignores all html-tags
> and hidden text maybe as an extension of <tagStripper>?
>
>
>
> Does anybody encounter similar problems?
>
>
>
> Comments are welcome.
>
>
>
> Cheers,
>
> Christoph
>
>
>