Class ContextMenuElement

java.lang.Object
com.vaadin.testbench.TestBenchElement
com.vaadin.flow.component.contextmenu.testbench.ContextMenuElement
All Implemented Interfaces:
CanCompareScreenshots, HasCallFunction, HasDriver, HasElementQuery, HasPropertySettersGetters, HasSearchContext, HasTestBenchCommandExecutor, org.openqa.selenium.SearchContext, org.openqa.selenium.TakesScreenshot, org.openqa.selenium.WebElement, org.openqa.selenium.WrapsElement

public class ContextMenuElement extends TestBenchElement
A TestBench element representing a <vaadin-context-menu> element.
Author:
Vaadin Ltd
  • Constructor Details

    • ContextMenuElement

      public ContextMenuElement()
  • Method Details

    • openByRightClick

      public static void openByRightClick(TestBenchElement target)
      This is a utility method equivalent to calling TestBenchElement.contextClick() on the target. If the target has a ContextMenu, it can be used to access the menu items.
      Parameters:
      target - The element to which the ContextMenu has been hooked to.
      See Also:
    • isOpen

      public boolean isOpen()
      Check if the context menu is open.
      Returns:
      true if menu is open.