1. doc wrong?
eg.
doc says WebTesterCase has assertButtonPresentWithText. But it's not there.
2. How to use clickButton(somevalue)?
my test code:
assertButtonPresent("button");
or
assertButtonPresent("Calculate");
or
assertButtonPresent("Process");
All failed.
my Html:
<form name="f1">
<table width="600" border="0" cellspacing="0" cellpadding="3">
<tr>
<td width="130"><b>Product:</b></td>
<td width="470">
</td>
</tr>
<tr>
<td width="130"><b>Quantity</b>:</td>
<td width="470">
<input type="text" name="quantity" size="6" maxlength="5" value="0" >
</td>
</tr>
<tr>
<td width="130"><b>Price per unit:</b></td>
<td width="470">
<b>$</b></td>
</tr>
<tr>
<td width="130"><b>Discount:</b></td>
<td width="470">
<b>%</b></td>
</tr>
<tr>
<td width="130"><b>Total:</b></td>
<td width="470">
<input type="text" name="total" value="0" readonly>
<input type="button" value="Calculate" name="button" >
</td>
</tr>
<tr>
<td width="130"><b>Customer name:</b></td>
<td width="470"><b>
<input type="text" name="custname" value="[blank]">
</b></td>
</tr>
<tr>
<td width="130"><b>Street:</b></td>
<td width="470">
<input type="text" name="street" value="[blank]">
</td>
</tr>
<tr>
<td width="130"><b>City:</b> </td>
<td width="470">
<input type="text" name="city" value="[blank]">
</td>
</tr>
<tr>
<td width="130"><b>State:</b> </td>
<td width="470">
<input type="text" name="state" value="[blank]">
</td>
</tr>
<tr>
<td width="130"><b>Zip:</b></td>
<td width="470">
<input type="text" name="zip" value="[blank]">
</td>
</tr>
<tr>
<td width="130"><b>Card:</b></td>
<td width="470">
<input type="radio" name="card" value="VISA" checked>
Visa
<input type="radio" name="card" value="MasterCard">
MasterCard
<input type="radio" name="card" value="American Express">
American Express
</td>
</tr>
<tr>
<td width="130"><b>Card Nr:</b></td>
<td width="470">
<input type="text" name="cardn" size="12" maxlength="12" value="[blank]">
</td>
</tr>
<tr>
<td width="130"><b>Expire date (mm/yy):</b></td>
<td width="470">
<input type="text" name="expm" maxlength="2" size="2" value="00">
/
<input type="text" name="expy" size="2" maxlength="2" value="00">
</td>
</tr>
<tr>
<td width="130"> </td>
<td width="470"> </td>
</tr>
</table>
<hr noshade>
<p>
<input type="button" value="Process" >
<input type="reset" value="Reset">
</form>
Thx
