Class NotificationAbstract

Abstract element representing a notification

Hierarchy (view full)

Properties

action$: ChainablePromiseElement<Element>
action$$: ChainablePromiseArray<Element[]>
actionLabel$: ChainablePromiseElement<Element>
actionLabel$$: ChainablePromiseArray<Element[]>
actions$: ChainablePromiseElement<Element>
actions$$: ChainablePromiseArray<Element[]>
btnSection$: ChainablePromiseElement<Element>
btnSection$$: ChainablePromiseArray<Element[]>
buttonConstructor$: ((...args) => ChainablePromiseElement<Element>)

Type declaration

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

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

      Returns ChainablePromiseElement<Element>

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

Type declaration

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

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

      Returns ChainablePromiseArray<Element[]>

center$: ((...args) => ChainablePromiseElement<Element>)

Type declaration

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

      • Rest ...args: [index: number]

      Returns ChainablePromiseElement<Element>

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

Type declaration

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

      • Rest ...args: [index: number]

      Returns ChainablePromiseArray<Element[]>

dismiss$: ChainablePromiseElement<Element>
dismiss$$: ChainablePromiseArray<Element[]>
expand$: ChainablePromiseElement<Element>
expand$$: ChainablePromiseArray<Element[]>
icon$: ChainablePromiseElement<Element>
icon$$: ChainablePromiseArray<Element[]>
message$: ChainablePromiseElement<Element>
message$$: ChainablePromiseArray<Element[]>
progress$: ChainablePromiseElement<Element>
progress$$: ChainablePromiseArray<Element[]>
source$: ChainablePromiseElement<Element>
source$$: ChainablePromiseArray<Element[]>
standalone$: ((...args) => ChainablePromiseElement<Element>)

Type declaration

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

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

      Returns ChainablePromiseElement<Element>

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

Type declaration

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

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

      Returns ChainablePromiseArray<Element[]>

standaloneContainer$: ChainablePromiseElement<Element>
standaloneContainer$$: 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

  • Get the action buttons of the notification as an array of NotificationButton objects

    Returns Promise<NotificationButton[]>

    Promise resolving to array of NotificationButton objects

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

    thenable self reference

  • Click on an action button with the given title

    Parameters

    • title: string

      title of the action/button

    Returns Promise<void>

    Promise resolving when the select button is pressed

Generated using TypeDoc