User prompts

session.dismissAlert()

Dismiss the alert in current page

RETURNS

Promise<void>

EXAMPLES

await session.dismissAlert();

SEE ALSO

session.acceptAlert()

Accept the alert in current page

RETURNS

Promise<void>

EXAMPLES

await session.acceptAlert();

SEE ALSO

session.getAlertText()

Returns the text from an alert

RETURNS

Promise<string>

EXAMPLES

const alertText = await session.getAlertText();

SEE ALSO

session.sendAlertText(text)

Sets the text field of a prompt to the given value.

PARAMETERS

  • text: string - Text to be set in the input area of alert

RETURNS

Promise<void>

EXAMPLES

await session.sendAlertText('Test');

SEE ALSO

Last updated