Page object representing the content assistant

Hierarchy (view full)

  • IPageDecorator<typeof ContentAssistLocators>
  • Menu<typeof ContentAssistLocators>
    • ContentAssist

Constructors

Properties

elem$: ChainablePromiseElement<Element>
elem$$: ChainablePromiseArray<Element[]>
firstItem$: ChainablePromiseElement<Element>
firstItem$$: ChainablePromiseArray<Element[]>
itemLabel$: ChainablePromiseElement<Element>
itemLabel$$: ChainablePromiseArray<Element[]>
itemList$: ChainablePromiseElement<Element>
itemList$$: ChainablePromiseArray<Element[]>
itemRow$: ChainablePromiseElement<Element>
itemRow$$: ChainablePromiseArray<Element[]>
itemRows$: ChainablePromiseElement<Element>
itemRows$$: ChainablePromiseArray<Element[]>
itemText$: ChainablePromiseElement<Element>
itemText$$: ChainablePromiseArray<Element[]>
message$: ChainablePromiseElement<Element>
message$$: ChainablePromiseArray<Element[]>

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

  • Find whether the menu has an item of a given name

    Parameters

    • name: string

      name of the item to search for

    Returns Promise<boolean>

    true if menu has an item with the given name, false otherwise

  • Find if the content assist is still loading the suggestions

    Returns Promise<boolean>

    promise that resolves to true when suggestions are done loading, to false otherwise

  • 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<ContentAssist>

    thenable self reference

  • Recursively select an item with a given path.

    E.g. calling select('File', 'Preferences', 'Settings') will open the 'File' -> 'Preferences' submenus and then click on 'Settings'.

    Selection happens in order of the arguments, if one of the items in the middle of the path has no children, the consequent path arguments will be ignored.

    Parameters

    • Rest ...path: string[]

      path to the item to select, represented by a sequence of strings

    Returns Promise<undefined | Menu<{
        elem: string;
        firstItem: string;
        itemLabel: string;
        itemList: string;
        itemRow: string;
        itemRows: string;
        itemText: string;
        message: string;
    }>>

    void if the last clicked item is a leaf, Menu item representing its submenu otherwise

Generated using TypeDoc