Class FormParameter

java.lang.Object
com.meterware.httpunit.FormParameter

public class FormParameter extends Object
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
  • Constructor Details

    • FormParameter

      public FormParameter()
  • Method Details

    • getControls

      public FormControl[] getControls()
      get the controls for this form Parameter
      Returns:
      the controls
    • getControl

      public FormControl 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

      public void toggleCheckbox(String value)
    • setValue

      public void setValue(boolean state)
    • setValue

      public void setValue(String value, boolean state)
    • isHiddenParameter

      public boolean isHiddenParameter()