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 ContextMenuElement openSubMenu()
      Open the submenu of this item by hovering over it. Returns the submenu after it has opened, which can be used to access the items in the submenu.
      Returns:
      the submenu element.
      Throws:
      org.openqa.selenium.NoSuchElementException - if no submenu is opened for this item.
    • isChecked

      public boolean isChecked()
      Check if the item is checked.
      Returns:
      true if the item is checked.