Class PopoverLocator

java.lang.Object
com.vaadin.browserless.locator.Locator<com.vaadin.flow.component.popover.Popover,PopoverLocator>
com.vaadin.flow.component.popover.PopoverLocator
All Implemented Interfaces:
Clickable<com.vaadin.flow.component.popover.Popover>, HasAriaLabelFilter<com.vaadin.flow.component.popover.Popover,PopoverLocator>, HasThemeFilter<com.vaadin.flow.component.popover.Popover,PopoverLocator>

@Generated("com.vaadin.browserless.locator.processor.LocatorProcessor") public class PopoverLocator extends Locator<com.vaadin.flow.component.popover.Popover,PopoverLocator> implements Clickable<com.vaadin.flow.component.popover.Popover>, HasAriaLabelFilter<com.vaadin.flow.component.popover.Popover,PopoverLocator>, HasThemeFilter<com.vaadin.flow.component.popover.Popover,PopoverLocator>
Generated locator for Popover, derived from PopoverTester. 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

    • PopoverLocator

      public PopoverLocator()
      Creates a locator that searches for a Popover.
    • PopoverLocator

      public PopoverLocator(com.vaadin.flow.component.popover.Popover component)
      Creates a locator already bound to the given component, so that the action methods run against it instead of against a lookup.
      Parameters:
      component - the component the locator resolves to
  • Method Details

    • getComponent

      public com.vaadin.flow.component.popover.Popover getComponent()
      Description copied from interface: Clickable
      Gets the component being tested.
      Specified by:
      getComponent in interface Clickable<com.vaadin.flow.component.popover.Popover>
      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<com.vaadin.flow.component.popover.Popover>
    • open

      public void open()
      Open the popover. Javadoc copied from PopoverTester.open().
    • close

      public void close()
      Close the popover. Javadoc copied from PopoverTester.close().
    • clickTarget

      public void clickTarget()
      Simulates clicking the target component to open the popover. Javadoc copied from PopoverTester.clickTarget().
      Throws:
      IllegalStateException - if no target is set or open-on-click is disabled
    • hoverTarget

      public void hoverTarget()
      Simulates hovering the target component to open the popover. Javadoc copied from PopoverTester.hoverTarget().
      Throws:
      IllegalStateException - if no target is set or open-on-hover is disabled
    • focusTarget

      public void focusTarget()
      Simulates focusing the target component to open the popover. Javadoc copied from PopoverTester.focusTarget().
      Throws:
      IllegalStateException - if no target is set or open-on-focus is disabled
    • pressEscape

      public void pressEscape()
      Simulates pressing Escape to close the popover. Javadoc copied from PopoverTester.pressEscape().
      Throws:
      IllegalStateException - if the popover is not open or close-on-Esc is disabled
    • clickOutside

      public void clickOutside()
      Simulates clicking outside the popover to close it. Javadoc copied from PopoverTester.clickOutside().
      Throws:
      IllegalStateException - if the popover is not open or close-on-outside-click is disabled
    • isOpen

      public boolean isOpen()
      Check if the popover is open. Javadoc copied from PopoverTester.isOpen().
      Returns:
      true if the popover is open