Class FormImpl

java.lang.Object
com.atlassian.jira.functest.framework.FormImpl
All Implemented Interfaces:
Form

public class FormImpl extends Object implements Form
  • Constructor Details

    • FormImpl

      @Inject public FormImpl(net.sourceforge.jwebunit.WebTester webTester)
  • Method Details

    • selectOption

      public void selectOption(String selectName, String option)
      Description copied from interface: Form
      Select an option with a given display value in a select element.
      Specified by:
      selectOption in interface Form
      Parameters:
      selectName - name of select element.
      option - display value of option to be selected.
    • selectOptionsByDisplayName

      public void selectOptionsByDisplayName(String selectName, String option, String... moreOptions)
      Description copied from interface: Form
      Select multiple options with given display values in a select element.
      Specified by:
      selectOptionsByDisplayName in interface Form
      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

      public void selectOptionsByDisplayName(String selectName, String[] options)
      Description copied from interface: Form
      Select multiple options with given display values in a select element.
      Specified by:
      selectOptionsByDisplayName in interface Form
      Parameters:
      selectName - name of select element.
      options - display values of options to be selected.
    • selectOptionsByValue

      public void selectOptionsByValue(String selectName, String option, String... moreOptions)
      Description copied from interface: Form
      Select multiple options with given values in a select element.
      Specified by:
      selectOptionsByValue in interface Form
      Parameters:
      selectName - name of select element.
      option - value of option to be selected.
      moreOptions - values of additional options to be selected.
    • selectOptionsByValue

      public void selectOptionsByValue(String selectName, String[] options)
      Description copied from interface: Form
      Select multiple options with given values in a select element.
      Specified by:
      selectOptionsByValue in interface Form
      Parameters:
      selectName - name of select element.
      options - values of options to be selected.
    • getForms

      public com.meterware.httpunit.WebForm[] getForms()
      Description copied from interface: Form
      Returns all the forms in the current response.
      Specified by:
      getForms in interface Form
      Returns:
      all the forms in the current response.
    • switchTo

      public com.meterware.httpunit.WebForm switchTo(String formId)
      Description copied from interface: Form
      Switches HttpUnit current form and returns it.
      Specified by:
      switchTo in interface Form
      Parameters:
      formId - the id of the form
      Returns:
      form with the id.
    • clickButtonWithValue

      public void clickButtonWithValue(String value)
      Click only a single button with the specific value. If more than one button found with that value it will barf.
      Specified by:
      clickButtonWithValue in interface Form
      Parameters:
      value - the value attribute of the of the button element to click.
    • clickAnyButtonWithValue

      public void clickAnyButtonWithValue(String value)
      Click the first button you find with the given value. Ignores duplicate values.
      Specified by:
      clickAnyButtonWithValue in interface Form
      Parameters:
      value - the value attribute of the of the button element to click.