struct Protocol::Page::JavascriptDialogOpening

Overview

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

Included Modules

Defined in:

protocol/page.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]

Instance Method Detail

def default_prompt : String | Nil #

Default dialog prompt.


[View source]
def has_browser_handler : Bool #

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.


[View source]
def message : String #

Message that will be displayed by the dialog.


[View source]
def type : DialogType #

Dialog type.


[View source]
def url : String #

Frame url.


[View source]