Class CheckboxLocator

java.lang.Object
com.vaadin.browserless.locator.Locator<Checkbox,CheckboxLocator>
com.vaadin.flow.component.checkbox.CheckboxLocator
All Implemented Interfaces:
Clickable<Checkbox>, HasAriaLabelFilter<Checkbox,CheckboxLocator>, HasLabelFilter<Checkbox,CheckboxLocator>, HasThemeFilter<Checkbox,CheckboxLocator>, HasValueFilter<Checkbox,Boolean,CheckboxLocator>

Generated locator for Checkbox, derived from CheckboxTester. Filter steps are inherited from Locator; action methods delegate to a fresh tester around the resolved component, so behavioral changes belong on the tester, not here.
  • Constructor Details

    • CheckboxLocator

      public CheckboxLocator()
    • CheckboxLocator

      public CheckboxLocator(Checkbox component)
  • Method Details

    • getComponent

      public Checkbox getComponent()
      Description copied from interface: Clickable
      Gets the component being tested.
      Specified by:
      getComponent in interface Clickable<Checkbox>
      Returns:
      the component under test
    • ensureComponentIsUsable

      public void ensureComponentIsUsable()
      Description copied from interface: Clickable
      Ensures the component is in a usable state before interaction.
      Specified by:
      ensureComponentIsUsable in interface Clickable<Checkbox>
    • isChecked

      public boolean isChecked()
      Checks whether the checkbox is currently checked. Javadoc copied from CheckboxTester.isChecked().
      Returns:
      true if the checkbox is checked, false otherwise
    • check

      public void check()
      Checks the checkbox by clicking it, as a user would.

      Does nothing if the checkbox is already checked, since a user would not click it in that case. The checkbox must be usable either way. Javadoc copied from CheckboxTester.check().

    • uncheck

      public void uncheck()
      Unchecks the checkbox by clicking it, as a user would.

      Does nothing if the checkbox is already unchecked, since a user would not click it in that case. The checkbox must be usable either way. Javadoc copied from CheckboxTester.uncheck().

    • click

      public void click(int button, MetaKeys metaKeys)
      Specified by:
      click in interface Clickable<Checkbox>
      Parameters:
      button - the mouse button (0=left, 1=middle, 2=right)
      metaKeys - the meta keys pressed during click