com.vaadin.flow.component.contextmenu.testbench.

Class ContextMenuItemElement

java.lang.Object
com.vaadin.testbench.TestBenchElement
com.vaadin.flow.component.contextmenu.testbench.ContextMenuItemElement

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 ContextMenuItemElement extends TestBenchElement

A TestBench element representing a <vaadin-context-menu-item> element.

Author:

Vaadin Ltd

  • Constructor Details

    • ContextMenuItemElement

      public ContextMenuItemElement()
  • Method Details

    • openSubMenu

      public void openSubMenu()

      Open the potential sub menu of this item by hovering. If there is a sub menu, it can be used to access the sub menu items after opening the last ContextMenuOverlayElement.

    • isChecked

      public boolean isChecked()

      Check if the item is checked.

      Returns:

      true if the item is checked.