Check the HTML on the page. It sounds like you have a malformed form which
modern browsers compensate for. Make sure the checkbox input element is
properly enclosed inside a form.
For instance, you should have this:
<form>
...
<input type="checkbox" name="chkAuthType" />
...
</form>
Not this:
<form>
...
</form>
<input type="checkbox" name="chkAuthType" />
Side Note: If the parent HTML element is closed before the form is closed, you
have malformed HTML. The most common pitfall I keep seeing is the following:
<table>
<tr>
<td>
<form>
...
</td>(Webtest sees the form end here and any elements below it are not
seen inside a form, giving the error you mentioned)
</tr>
...
<tr>
<td>
...
</form>
</td>
</tr>
</table>
We have found the following Firefox plugin especially helpful in identifying
malformed pages: http://users.skynet.be/mgueury/mozilla/
Our basic rule is if the plugin shows a Red X, webtest most likely will fail.
John Spann | Associate Software Engineer
Citrix Online Division
Citrix Systems, Inc.
6500 Hollister Avenue
Goleta, CA 93117 USA
www.citrix.com
Phone: 805.690.3489
Cell: 805.729.0008
Email: [email protected]
On 2/27/09 10:54 AM, "Rhee" <[email protected]> wrote:
Hi all
When running a script to setCheckbox, i get error :
No suitable form found having field named "chkAuthType"; where chkAuthType is
the checkbox name
offending line:
<setCheckbox description="Click for configuration only" name="chkAuthType"
checked="false"/>
setInputField work just fine on the same login.cfm page. What am i missing?
Thanks
_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest