puppeteer/new-docs/puppeteer.protocol.page.javascriptdialogopeningevent.md
2020-07-13 14:01:35 +01:00

1.5 KiB

Home > puppeteer > Protocol > Page > JavascriptDialogOpeningEvent

Protocol.Page.JavascriptDialogOpeningEvent interface

Fired when a JavaScript initiated dialog (alert, confirm, prompt, or onbeforeunload) is about to open.

Signature:

export interface JavascriptDialogOpeningEvent 

Properties

Property Type Description
defaultPrompt string Default dialog prompt.
hasBrowserHandler boolean True iff browser is capable showing or acting on the given dialog. When browser has no dialog handler for given target, calling alert while Page domain is engaged will stall the page execution. Execution can be resumed via calling Page.handleJavaScriptDialog.
message string Message that will be displayed by the dialog.
type DialogType Dialog type.
url string Frame url.