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