Class FormImpl
java.lang.Object
com.atlassian.jira.functest.framework.FormImpl
- All Implemented Interfaces:
Form
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclickAnyButtonWithValue(String value) Click the first button you find with the given value.voidclickButtonWithValue(String value) Click only a single button with the specific value.com.meterware.httpunit.WebForm[]getForms()Returns all the forms in the current response.voidselectOption(String selectName, String option) Select an option with a given display value in a select element.voidselectOptionsByDisplayName(String selectName, String[] options) Select multiple options with given display values in a select element.voidselectOptionsByDisplayName(String selectName, String option, String... moreOptions) Select multiple options with given display values in a select element.voidselectOptionsByValue(String selectName, String[] options) Select multiple options with given values in a select element.voidselectOptionsByValue(String selectName, String option, String... moreOptions) Select multiple options with given values in a select element.com.meterware.httpunit.WebFormSwitches HttpUnit current form and returns it.
-
Constructor Details
-
FormImpl
@Inject public FormImpl(net.sourceforge.jwebunit.WebTester webTester)
-
-
Method Details
-
selectOption
Description copied from interface:FormSelect an option with a given display value in a select element.- Specified by:
selectOptionin interfaceForm- Parameters:
selectName- name of select element.option- display value of option to be selected.
-
selectOptionsByDisplayName
Description copied from interface:FormSelect multiple options with given display values in a select element.- Specified by:
selectOptionsByDisplayNamein interfaceForm- Parameters:
selectName- name of select element.option- display value of an option to be selected.moreOptions- display values of additional options to be selected.
-
selectOptionsByDisplayName
Description copied from interface:FormSelect multiple options with given display values in a select element.- Specified by:
selectOptionsByDisplayNamein interfaceForm- Parameters:
selectName- name of select element.options- display values of options to be selected.
-
selectOptionsByValue
Description copied from interface:FormSelect multiple options with given values in a select element.- Specified by:
selectOptionsByValuein interfaceForm- Parameters:
selectName- name of select element.option- value of option to be selected.moreOptions- values of additional options to be selected.
-
selectOptionsByValue
Description copied from interface:FormSelect multiple options with given values in a select element.- Specified by:
selectOptionsByValuein interfaceForm- Parameters:
selectName- name of select element.options- values of options to be selected.
-
getForms
public com.meterware.httpunit.WebForm[] getForms()Description copied from interface:FormReturns all the forms in the current response. -
switchTo
Description copied from interface:FormSwitches HttpUnit current form and returns it. -
clickButtonWithValue
Click only a single button with the specific value. If more than one button found with that value it will barf.- Specified by:
clickButtonWithValuein interfaceForm- Parameters:
value- the value attribute of the of the button element to click.
-
clickAnyButtonWithValue
Click the first button you find with the given value. Ignores duplicate values.- Specified by:
clickAnyButtonWithValuein interfaceForm- Parameters:
value- the value attribute of the of the button element to click.
-