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

 

Reply via email to