A tag which sets a text field to the provided value.
To use XPath to set a text field named testTextField that exists in a form with the name testform:
<htmlunit-set-text-field
functionId="Set the testTextField field to 'some value'"
xpath="//form[@name='testform']/input[@name='testTextField']"
value="some value"/>
To use XPath to set a text field named testTextField that doesn't exist in a form:
<htmlunit-set-text-field
functionId="Set the testTextField field to 'some value'"
xpath="//input[@name='testTextField']"
value="some value"/>
To to set a text field named testTextField that exists in a form with id or name of form_test w/o using XPath:
<htmlunit-set-text-field
functionId="Set the testTextField field to 'some value'"
form="form_test"
fieldName="testTextField"
value="some value"/>
To to set a text field named testTextField that exists in the 2nd form form_test w/o using XPath:
<htmlunit-set-text-field
functionId="Set the testTextField field to 'some value'"
form="2"
fieldName="testTextField"
value="some value"/>
To to set a text field named testTextField that exists in form define by //table/tr[3]/td/form XPath:
<htmlunit-set-text-field
functionId="Set the testTextField field to 'some value'"
form="//table/tr[3]/td/form"
fieldName="testTextField"
value="some value"/>