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