Package com.meterware.httpunit
Class FormParameter
java.lang.Object
com.meterware.httpunit.FormParameter
Represents the aggregate of all form controls with a particular name. This permits us to abstract setting
values so that changing a control type does not break a test.
- Author:
- Russell Gold
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclass
This exception is thrown on an attempt to set a parameter to a value not permitted to it by the form. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionget the control for this form Parameter (assuming it has only one as for a text controlget the controls for this form Parameterboolean
void
setValue
(boolean state) void
void
void
toggleCheckbox
(String value)
-
Constructor Details
-
FormParameter
public FormParameter()
-
-
Method Details
-
getControls
get the controls for this form Parameter- Returns:
- the controls
-
getControl
get the control for this form Parameter (assuming it has only one as for a text control- Returns:
- the controls
-
toggleCheckbox
public void toggleCheckbox() -
toggleCheckbox
-
setValue
public void setValue(boolean state) -
setValue
-
isHiddenParameter
public boolean isHiddenParameter()
-