JavascriptDialogOpeningParameter

@Serializable
data class JavascriptDialogOpeningParameter(val url: String, val frameId: String, val message: String, val type: Page.DialogType, val hasBrowserHandler: Boolean, val defaultPrompt: String? = null)

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

Constructors

Link copied to clipboard
constructor(url: String, frameId: String, message: String, type: Page.DialogType, hasBrowserHandler: Boolean, defaultPrompt: String? = null)

Properties

Link copied to clipboard
val defaultPrompt: String? = null

Default dialog prompt.

Link copied to clipboard

Frame id.

Link copied to clipboard

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.

Link copied to clipboard

Message that will be displayed by the dialog.

Link copied to clipboard

Dialog type.

Link copied to clipboard
val url: String

Frame url.