java.lang.Object | |
↳ | com.atlassian.jira.functest.framework.util.form.FormParameterUtil |
This class is used to modify form requests that are to be submitted It does this by modifying the request on a form before submitting it. If you attempt to resunbmit a form then an assertion error ewill be thrown. also note that for duration from construction to form submission the validation of parameter values in the test is disabled. You have to work with the returned DOM, rather than with the tester, as the state of the request and response objects will not be in sync
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
allows you to add options to an existing select HTML element
| |||||||||||
allows you to replace the options in an existing select HTML element
| |||||||||||
allows you to replace the options in an existing select HTML element
| |||||||||||
allows you to set the value of any parameter in the request
| |||||||||||
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class java.lang.Object |
tester | the currently executing WebTester |
---|---|
formIdentifierOrName | either the id or the name of the form you want to modify |
submitButtonName | the name of the submit button, if null then the default button is used |
allows you to add options to an existing select HTML element
select | the name of the select to which to add an option |
---|---|
value | a string array containing the option values you want to submit |
allows you to replace the options in an existing select HTML element
select | the name of the select to which to repalce all options |
---|---|
value | a string array containing the option values you want to submit |
allows you to replace the options in an existing select HTML element
formElementName | the name of the formElement |
---|---|
value | a string containing the value you want to submit |
allows you to set the value of any parameter in the request
parameters | A map containing the names and values of the parmeters to be submited |
---|
DomNodeCopier
is used to return a shallow copy of the Document