Class ButtonLocator

java.lang.Object
com.vaadin.browserless.locator.Locator<Button,ButtonLocator>
com.vaadin.flow.component.button.ButtonLocator
All Implemented Interfaces:
Clickable<Button>, HasAriaLabelFilter<Button,ButtonLocator>, HasTextFilter<Button,ButtonLocator>, HasThemeFilter<Button,ButtonLocator>

@Generated("com.vaadin.browserless.locator.processor.LocatorProcessor") public class ButtonLocator extends Locator<Button,ButtonLocator> implements Clickable<Button>, HasTextFilter<Button,ButtonLocator>, HasAriaLabelFilter<Button,ButtonLocator>, HasThemeFilter<Button,ButtonLocator>
Generated locator for Button, derived from ButtonTester. 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

    • ButtonLocator

      public ButtonLocator()
    • ButtonLocator

      public ButtonLocator(Button component)
  • Method Details

    • getComponent

      public Button getComponent()
      Description copied from interface: Clickable
      Gets the component being tested.
      Specified by:
      getComponent in interface Clickable<Button>
      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<Button>