HandleJavaScriptDialogRequest

data class HandleJavaScriptDialogRequest(accept: Boolean, promptText: String?)

Represents request frame that can be used with Page#handleJavaScriptDialog operation call.

Accepts or dismisses a JavaScript initiated dialog (alert, confirm, prompt, or onbeforeunload).

See also

Constructors

HandleJavaScriptDialogRequest
Link copied to clipboard
fun HandleJavaScriptDialogRequest(accept: Boolean, promptText: String? = null)

Properties

accept
Link copied to clipboard
val accept: Boolean
Whether to accept or dismiss the dialog.
promptText
Link copied to clipboard
val promptText: String? = null
The text to enter into the dialog prompt before accepting.

Sources

jvm source
Link copied to clipboard