struct Protocol::Page::JavascriptDialogOpening
- Protocol::Page::JavascriptDialogOpening
- Struct
- Value
- Object
Overview
Fired when a JavaScript initiated dialog (alert, confirm, prompt, or onbeforeunload) is about to open.
Included Modules
- JSON::Serializable
- Protocol::Event
Defined in:
protocol/page.crConstructors
Instance Method Summary
-
#default_prompt : String | Nil
Default dialog prompt.
-
#has_browser_handler : Bool
True iff browser is capable showing or acting on the given dialog.
-
#message : String
Message that will be displayed by the dialog.
-
#type : DialogType
Dialog type.
-
#url : String
Frame url.
Constructor Detail
Instance Method Detail
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.