[Webtest] setting values of hidden fields

Dierk König webtest@lists.canoo.com
Thu, 11 Jul 2002 12:24:44 +0200


Hi Darrin,

> Why can't I set the value of a hidden input?

Well, with a WebTest you simulate a user that uses a web application.
Such a user is not able to change the value of a hidden input field.
They are hidden exactly for that purpose.
 
> <setinputfield stepid="set hidden useracl field" name="useracl"
> value="Whatever"/>
> I need to do this to emulate what an onSubmit javascript handler does.

We currently do not support javascript in WebTests.

A workaround would be to put the desired name/value directly into the url.

hope that helps
Mittie