data class JavascriptDialogOpeningEvent : PageEvent
Fired when a JavaScript initiated dialog (alert, confirm, prompt, or onbeforeunload) is about to open.
<init> |
Fired when a JavaScript initiated dialog (alert, confirm, prompt, or onbeforeunload) is about to open. JavascriptDialogOpeningEvent(url: String, message: String, type: DialogType, hasBrowserHandler: Boolean, defaultPrompt: String? = null) |
defaultPrompt |
Default dialog prompt. val defaultPrompt: String? |
hasBrowserHandler |
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. val hasBrowserHandler: Boolean |
message |
Message that will be displayed by the dialog. val message: String |
type |
Dialog type. val type: DialogType |
url |
Frame url. val url: String |