Class MenuItem<T>Abstract

Abstract element representing a menu item

Type Parameters

  • T

Hierarchy (view full)

Properties

label: string
parentMenu: Menu<T>

Accessors

  • get elem(): ChainablePromiseElement<Element>
  • Base element of given page object

    Returns ChainablePromiseElement<Element>

  • get parent(): ChainablePromiseElement<Element>
  • Parent element of given page object

    Returns ChainablePromiseElement<Element>

Methods

  • Poll for the element to become visible

    Parameters

    • timeout: number = 10000

      custom timeout for the wait

    • interval: number = 2000

      custom interval to control polling

    Returns Promise<MenuItem<T>>

    thenable self reference

  • Use the given menu item: Opens the submenu if the item has children, otherwise simply click the item.

    Returns Promise<undefined | Menu<any>>

    Menu object representing the submenu if the item has children, void otherwise.

Generated using TypeDoc