PlaywrightPage

PlaywrightPage

BrowserPage implementation for Playwright.

Constructor

new PlaywrightPage()

Source:

Members

FinderClass

Source:

nativeObject

Source:

socket

Source:

window

Source:

Methods

_waitForDialog() → {Promise.<string>}

Source:
Returns:

resolved by confirm message

Type
Promise.<string>

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, not supported yet.

Source:

reload() → {Promise.<object>}

Source:
Returns:
Type
Promise.<object>

waitForAlert() → {Promise.<string>}

Source:
Returns:

resolved by alert message

Type
Promise.<string>

waitForConfirm() → {Promise.<string>}

Source:
Returns:

resolved by confirm message

Type
Promise.<string>

waitForDownload() → {Promise.<object>}

Description:
  • Wait for download completion caused by the given action. "attachment" is handled with playwright's first-class download event, "inline" is handled by saving the response body.

Source:
Returns:
Type
Promise.<object>