Specifies that a page or response contains a form. The form can be used both for validating the web server's response and for submiting a reply to the web server.
*lt;set name="username" value="..."/>
*lt;set name="password" value="..."/>
<with page="login">
<fetch />
<verify/>
<submit name="passwordform"/>
</with>
...
*lt;definePage name="login" url="">
*lt;form name="form" method="post" action="...">
*lt;input name="Name" type="text" set="#{username}"/>
*lt;input name="password" type="text" set="#{password}"/>
*lt;input type="checkbox" name="persist" />
*lt;/form>
*lt;element xpath="count(//form) = 1"/>
*lt;/definePage>
If the submit name is omitted, the first form on the page is used.
dbinsert -- Defines a set of database insertions for a page or response.
input -- Specifies the details of an input field of a form.
Attribute Value(s) Default Value action CDATA #IMPLIED id ID #IMPLIED method CDATA #IMPLIED name The name attribute is used to identify the form when doing a submit.
CDATA#REQUIRED
( input | dbinsert ) *
definepage -- Used to define the structure of a html page
frame -- Specifies the contents of a frame.
verify -- Verify the most recently fetched page against a specification.
Top Elements || All Elements || Tree