Page object for the windows controls part of the title bar

Hierarchy (view full)

Constructors

Properties

bar: TitleBar = ...
close$: ChainablePromiseElement<Element>
close$$: ChainablePromiseArray<Element[]>
elem$: ChainablePromiseElement<Element>
elem$$: ChainablePromiseArray<Element[]>
maximize$: ChainablePromiseElement<Element>
maximize$$: ChainablePromiseArray<Element[]>
minimize$: ChainablePromiseElement<Element>
minimize$$: ChainablePromiseArray<Element[]>
restore$: ChainablePromiseElement<Element>
restore$$: 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

  • Use the window close button. Use at your own risk.

    Returns Promise<void>

    Promise resolving when close button is pressed

  • Use the maximize window button if the window is not maximized

    Returns Promise<void>

    Promise resolving when maximize button is pressed

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

    thenable self reference

  • Use the restore window button if the window is maximized

    Returns Promise<void>

    Promise resolving when restore button is pressed

Generated using TypeDoc