Its not possible to provide methods for accessing and testing all the possible HTML contructs. We need a way to be able to test the existance of nested elements, or to count the number of links in a specific subtable. We also need a way to test XML documents.
This construct can be used to test for an atrbitary element in an xml or html page using an xpath expression.
<element xpath="count(//form) = 1"/> <element xpath="count(//a)" value="1"/> <element xpath="count(//a)" max="5" min="1"/>
If you are unfamiliar with xpath, or need to formulate a complex xpath expression, save the html or xml page to a file, then download and use Alex Chaffee’s XPath Explorer.
Attribute Value(s) Default Value max CDATA #IMPLIED min CDATA #IMPLIED name
Assign a unique name to allow this element to be referenced by other elementsID
#IMPLIED value CDATA #IMPLIED xpath CDATA #REQUIRED
definepage -- Used to define the structure of a html page
verify -- Verify the most recently fetched page against a specification.
Top Elements || All Elements || Tree