Page object representing an item of the custom VSCode title bar

Hierarchy (view full)

Constructors

  • Parameters

    • locators: VSCodeLocatorMap
    • ctor: Function
    • openMenu: ((self) => Promise<void>)
        • (self): Promise<void>
        • Parameters

          Returns Promise<void>

    • label: string
    • parentMenu: Menu<{
          elem: string;
          itemElement: string;
          itemLabel: string;
          itemNesting: string;
          menubar: string;
          overflowItemConstructor: ((label) => string);
          title: string;
          topLevelItemConstructor: ((label) => string);
      }>

    Returns TitleBarItem

Properties

elem$: ChainablePromiseElement<Element>
elem$$: ChainablePromiseArray<Element[]>
itemElement$: ChainablePromiseElement<Element>
itemElement$$: ChainablePromiseArray<Element[]>
itemLabel$: ChainablePromiseElement<Element>
itemLabel$$: ChainablePromiseArray<Element[]>
itemNesting$: ChainablePromiseElement<Element>
itemNesting$$: ChainablePromiseArray<Element[]>
label: string
menubar$: ChainablePromiseElement<Element>
menubar$$: ChainablePromiseArray<Element[]>
overflowItemConstructor$: ((...args) => ChainablePromiseElement<Element>)

Type declaration

    • (...args): ChainablePromiseElement<Element>
    • Parameters

      • Rest ...args: [label: string]

      Returns ChainablePromiseElement<Element>

overflowItemConstructor$$: ((...args) => ChainablePromiseArray<Element[]>)

Type declaration

    • (...args): ChainablePromiseArray<Element[]>
    • Parameters

      • Rest ...args: [label: string]

      Returns ChainablePromiseArray<Element[]>

parentMenu: Menu<{
    elem: string;
    itemElement: string;
    itemLabel: string;
    itemNesting: string;
    menubar: string;
    overflowItemConstructor: ((label) => string);
    title: string;
    topLevelItemConstructor: ((label) => string);
}>

Type declaration

  • elem: string
  • itemElement: string
  • itemLabel: string
  • itemNesting: string
  • menubar: string
  • overflowItemConstructor: ((label) => string)
      • (label): string
      • Parameters

        • label: string

        Returns string

  • title: string
  • topLevelItemConstructor: ((label) => string)
      • (label): string
      • Parameters

        • label: string

        Returns string

title$: ChainablePromiseElement<Element>
title$$: ChainablePromiseArray<Element[]>
topLevelItemConstructor$: ((...args) => ChainablePromiseElement<Element>)

Type declaration

    • (...args): ChainablePromiseElement<Element>
    • Parameters

      • Rest ...args: [label: string]

      Returns ChainablePromiseElement<Element>

topLevelItemConstructor$$: ((...args) => ChainablePromiseArray<Element[]>)

Type declaration

    • (...args): ChainablePromiseArray<Element[]>
    • Parameters

      • Rest ...args: [label: string]

      Returns 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

  • Return the Menu object representing the menu this item belongs to Todo: fix this

    Returns Menu<{
        elem: string;
        itemElement: string;
        itemLabel: string;
        itemNesting: string;
        menubar: string;
        overflowItemConstructor: ((label) => string);
        title: string;
        topLevelItemConstructor: ((label) => string);
    }>

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

    thenable self reference

Generated using TypeDoc