BrowserPage

BrowserPage

Abstract page interface implemented by each browser backend.

Constructor

new BrowserPage()

Source:

Members

FinderClass

Source:

nativeObject

Source:

socket

Source:

window

Source:

Methods

executeJavaScript() → {Promise.<(string|number|boolean)>}

Source:
Returns:
Type
Promise.<(string|number|boolean)>

getURL() → {string}

Source:
Returns:
Type
string

isClosed() → {boolean}

Source:
Returns:

whether this page has been closed

Type
boolean

loadURL() → {Promise.<BrowserPage>}

Source:
Returns:
Type
Promise.<BrowserPage>

openDevTools()

Description:
  • show developer tool

Source:

reload() → {Promise.<object>}

Source:
Returns:
Type
Promise.<object>

takeScreenshot() → {Promise.<string>}

Source:
Returns:

resolved by saved filename

Type
Promise.<string>

waitForAlert(options) → {Promise.<string>}

Source:
Parameters:
Name Type Description
options object

"message" and "timeout"

Returns:

resolved by alert message

Type
Promise.<string>

waitForConfirm(options) → {Promise.<string>}

Source:
Parameters:
Name Type Description
options object

"message", "isClickOK" and "timeout"

Returns:

resolved by confirm message

Type
Promise.<string>

waitForDownload(options) → {Promise.<object>}

Source:
Parameters:
Name Type Description
options object

"downloadPath" and "timeout"

Returns:
Type
Promise.<object>