Class PopoverLocator
java.lang.Object
com.vaadin.browserless.locator.Locator<Popover,PopoverLocator>
com.vaadin.flow.component.popover.PopoverLocator
- All Implemented Interfaces:
Clickable<Popover>,HasAriaLabelFilter<Popover,,PopoverLocator> HasThemeFilter<Popover,PopoverLocator>
@Generated("com.vaadin.browserless.locator.processor.LocatorProcessor")
public class PopoverLocator
extends Locator<Popover,PopoverLocator>
implements Clickable<Popover>, HasAriaLabelFilter<Popover,PopoverLocator>, HasThemeFilter<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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidSimulates clicking outside the popover to close it.voidSimulates clicking the target component to open the popover.voidclose()Close the popover.voidEnsures the component is in a usable state before interaction.voidSimulates focusing the target component to open the popover.Gets the component being tested.voidSimulates hovering the target component to open the popover.booleanisOpen()Check if the popover is open.voidopen()Open the popover.voidSimulates pressing Escape to close the popover.Methods inherited from class com.vaadin.browserless.locator.Locator
atIndex, component, components, exists, inside, inside, invalidate, self, with, withAttribute, withAttribute, withClassName, withCondition, withId, withoutAttribute, withoutAttribute, withoutClassNameMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.vaadin.browserless.Clickable
click, click, click, middleClick, middleClick, rightClick, rightClickMethods inherited from interface com.vaadin.browserless.locator.HasAriaLabelFilter
withAriaLabel, withAriaLabelContainingMethods inherited from interface com.vaadin.browserless.locator.HasThemeFilter
withoutTheme, withTheme
-
Constructor Details
-
PopoverLocator
public PopoverLocator() -
PopoverLocator
-
-
Method Details
-
getComponent
Description copied from interface:ClickableGets the component being tested.- Specified by:
getComponentin interfaceClickable<Popover>- Returns:
- the component under test
-
ensureComponentIsUsable
public void ensureComponentIsUsable()Description copied from interface:ClickableEnsures the component is in a usable state before interaction.- Specified by:
ensureComponentIsUsablein interfaceClickable<Popover>
-
open
public void open()Open the popover. Javadoc copied fromPopoverTester.open(). -
close
public void close()Close the popover. Javadoc copied fromPopoverTester.close(). -
clickTarget
public void clickTarget()Simulates clicking the target component to open the popover. Javadoc copied fromPopoverTester.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 fromPopoverTester.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 fromPopoverTester.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 fromPopoverTester.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 fromPopoverTester.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 fromPopoverTester.isOpen().- Returns:
- true if the popover is open
-