| Constructor and Description |
|---|
FormImpl(net.sourceforge.jwebunit.WebTester webTester) |
| Modifier and Type | Method and Description |
|---|---|
void |
clickAnyButtonWithValue(String value)
Click the first button you find with the given value.
|
void |
clickButtonWithValue(String value)
Click only a single button with the specific value.
|
com.meterware.httpunit.WebForm[] |
getForms()
Returns all the forms in the current response.
|
void |
selectOption(String selectName,
String option)
Select an option with a given display value in a select element.
|
void |
selectOptionsByDisplayName(String selectName,
String[] options)
Select multiple options with given display values in a select element.
|
void |
selectOptionsByDisplayName(String selectName,
String option,
String... moreOptions)
Select multiple options with given display values in a select element.
|
void |
selectOptionsByValue(String selectName,
String[] options)
Select multiple options with given values in a select element.
|
void |
selectOptionsByValue(String selectName,
String option,
String... moreOptions)
Select multiple options with given values in a select element.
|
com.meterware.httpunit.WebForm |
switchTo(String formId)
Switches HttpUnit current form and returns it.
|
public void selectOption(String selectName, String option)
FormselectOption in interface FormselectName - name of select element.option - display value of option to be selected.public void selectOptionsByDisplayName(String selectName, String option, String... moreOptions)
FormselectOptionsByDisplayName in interface FormselectName - name of select element.option - display value of an option to be selected.moreOptions - display values of additional options to be selected.public void selectOptionsByDisplayName(String selectName, String[] options)
FormselectOptionsByDisplayName in interface FormselectName - name of select element.options - display values of options to be selected.public void selectOptionsByValue(String selectName, String option, String... moreOptions)
FormselectOptionsByValue in interface FormselectName - name of select element.option - value of option to be selected.moreOptions - values of additional options to be selected.public void selectOptionsByValue(String selectName, String[] options)
FormselectOptionsByValue in interface FormselectName - name of select element.options - values of options to be selected.public com.meterware.httpunit.WebForm[] getForms()
Formpublic com.meterware.httpunit.WebForm switchTo(String formId)
Formpublic void clickButtonWithValue(String value)
clickButtonWithValue in interface Formvalue - the value attribute of the of the button element to click.public void clickAnyButtonWithValue(String value)
clickAnyButtonWithValue in interface Formvalue - the value attribute of the of the button element to click.Copyright © 2002-2017 Atlassian. All Rights Reserved.