This step verifies if the specified text (CDATA) is enclosed
by an HTML element (tag) of the specified type. A name can
be specified in case that the element in question appears
multiple times. The text can be specified as a regular expression.
Example 1:
HTML source:
<title>The page title</title>
Possible statements:
<verifyElementText type="title" text="The page title"/>
<verifyElementText type="title" text=".*page title.*" regex="true"/>
Example 2:
HTML source:
<textarea name="Hugo">
The very large text area named hugo.
</textarea>
Possible statements:
<verifyElementText type="textarea" name="Hugo" text="The very large text area named hugo."/>
<verifyElementText type="textarea" name="Hugo" text=".*text area.*" regex="true"/>
author: Unknown author: Marc Guillemot author: Paul King |