Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface PageObjectUtils

Hierarchy

  • PageObjectUtils

Index

Properties

DEFAULT_ELEMENT_TIMEOUT

DEFAULT_ELEMENT_TIMEOUT: number

DEFAULT_LOADING_TIMEOUT

DEFAULT_LOADING_TIMEOUT: number

assert

assert: any

assertEquals

assertEquals: function

Type declaration

    • (value: any, expectedValue: any, message?: string): Promise<any>
    • Parameters

      • value: any
      • expectedValue: any
      • Optional message: string

      Returns Promise<any>

assertNotNull

assertNotNull: function

Type declaration

    • (value: any, message?: string): Promise<any>
    • Parameters

      • value: any
      • Optional message: string

      Returns Promise<any>

asyncElement

asyncElement: function

Type declaration

    • (selector: By, timeout?: number): ElementFinder
    • Parameters

      • selector: By
      • Optional timeout: number

      Returns ElementFinder

cleanScreenshots

cleanScreenshots: function

Type declaration

    • (): any
    • Returns any

clickIfClickable

clickIfClickable: function

Type declaration

    • (element: ElementFinder): Promise<void>
    • Parameters

      • element: ElementFinder

      Returns Promise<void>

clickIfPresent

clickIfPresent: function

Type declaration

    • (element: ElementFinder): Promise<void>
    • Parameters

      • element: ElementFinder

      Returns Promise<void>

clickIfPresentAndClickableAsync

clickIfPresentAndClickableAsync: function

Type declaration

    • (element: ElementFinder): Promise<void>
    • Parameters

      • element: ElementFinder

      Returns Promise<void>

clickIfPresentAsync

clickIfPresentAsync: function

Type declaration

    • (element: ElementFinder): Promise<void>
    • Parameters

      • element: ElementFinder

      Returns Promise<void>

findFirstDisplayed

findFirstDisplayed: function

Type declaration

    • (elementSelector: By): ElementFinder
    • Parameters

      • elementSelector: By

      Returns ElementFinder

getCurrentPath

getCurrentPath: function

Type declaration

    • (): Promise<any>
    • Returns Promise<any>

getLocation

getLocation: function

Type declaration

locationFromUrl

locationFromUrl: function

Type declaration

    • (url: string): Url
    • Parameters

      • url: string

      Returns Url

logPromise

logPromise: function

Type declaration

    • (promise: Promise<any>): Promise<void>
    • Parameters

      • promise: Promise<any>

      Returns Promise<void>

openPage

openPage: function

Type declaration

resetJasmineTimeoutForPageObjectTimeouts

resetJasmineTimeoutForPageObjectTimeouts: function

Type declaration

    • (): any
    • Returns any

setDefaultElementTimeout

setDefaultElementTimeout: function

Type declaration

    • (timeout: number): any
    • Parameters

      • timeout: number

      Returns any

setDefaultLoadingTimeout

setDefaultLoadingTimeout: function

Type declaration

    • (timeout: number): any
    • Parameters

      • timeout: number

      Returns any

setTurnOffAlerts

setTurnOffAlerts: function

Type declaration

    • (turnOffAlertsValue: boolean): any
    • Parameters

      • turnOffAlertsValue: boolean

      Returns any

skipAlertIfPresent

skipAlertIfPresent: function

Type declaration

    • (): Promise<any>
    • Returns Promise<any>

takeScreenshot

takeScreenshot: function

Type declaration

    • (imageName: string): Promise<string> | Promise<void>
    • Parameters

      • imageName: string

      Returns Promise<string> | Promise<void>

turnOffAlerts

turnOffAlerts: function

Type declaration

    • (): any
    • Returns any

waitForElementToBeClickable

waitForElementToBeClickable: function

Type declaration

    • (element: ElementFinder, timeout?: number): any
    • Parameters

      • element: ElementFinder
      • Optional timeout: number

      Returns any

Generated using TypeDoc