Some info about hidden fieldes hidden it in the release notes:-) . Maybe it should go to the FAQ?
Notes:
1. Hidden fields may not be modified through the setParameter call if parameter validation is enabled, since they
cannot be modified through normal user interaction (in the absence of JavaScript). The getScriptableObject call
provides a way around this.
And also from the release notes, the solution:
3. It is now possible to set the value of a hidden field in a form using a mechanism which will support scripting
in the future: form.getScriptableObject().setParameterValue( fieldName, newValue )
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I am getting an exception while setting the value of a hidden field inside a form
Exception: com.meterware.httpunit.MissingParameterValueException:
Does any one know if this behaviour is supported by HttpUnit ?
Thanks,
Karthik
Some info about hidden fieldes hidden it in the release notes:-) . Maybe it should go to the FAQ?
Notes:
1. Hidden fields may not be modified through the setParameter call if parameter validation is enabled, since they
cannot be modified through normal user interaction (in the absence of JavaScript). The getScriptableObject call
provides a way around this.
And also from the release notes, the solution:
3. It is now possible to set the value of a hidden field in a form using a mechanism which will support scripting
in the future: form.getScriptableObject().setParameterValue( fieldName, newValue )