[Webtest] clickbutton example
Scot Hale
webtest@lists.canoo.com
Fri, 28 Feb 2003 10:06:35 -0800
I think the example for the click button is wrong on the syntax reference
page. I think the html snippet should have thet form submit button
name="doIt" instead of value="doIt".
from webpage :
=========================================================
The most simple usage of <clickbutton>is to submit a simple HTML form back
to the server. Consider the following HTML form snippet:
HTML
...
<FORM method="POST" action="formTest">
<BR/>Text:
<INPUT type="text" name="field1" value="" />
<INPUT type="submit" value="doIt" />
</FORM>
...
The following test code sets a value for the input field and submits the
form. It assumes that the form is shown again with the input field echoing
the previously entered value:
clickbutton 1
...
<setinputfield stepid="Set the input field"
name="field1"
value="My simple value" />
<clickbutton stepid="Submit the simple form"
name="doIt" />
<verifyinputfield stepid="Check echo of previous input"
name="field1"
value="My simple value" />
...
============================================================
Scot Hale
_________________________________________________________________
Tired of spam? Get advanced junk mail protection with MSN 8.
http://join.msn.com/?page=features/junkmail