Struct chromiumoxide_cdp::cdp::browser_protocol::page::EventJavascriptDialogOpening [−][src]
pub struct EventJavascriptDialogOpening { pub url: String, pub message: String, pub type: DialogType, pub has_browser_handler: bool, pub default_prompt: Option<String>, }
Expand description
Fired when a JavaScript initiated dialog (alert, confirm, prompt, or onbeforeunload) is about to open. javascriptDialogOpening
Fields
url: String
Frame url.
message: String
Message that will be displayed by the dialog.
type: DialogType
Dialog type.
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.
default_prompt: Option<String>
Default dialog prompt.
Implementations
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Performs the conversion.
What kind of event this type is
The whole string identifier for this method like: DOM.removeNode
The name of the domain this method belongs to: DOM
The standalone identifier of the method inside the domain: removeNode
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl Send for EventJavascriptDialogOpening
impl Sync for EventJavascriptDialogOpening
impl Unpin for EventJavascriptDialogOpening
impl UnwindSafe for EventJavascriptDialogOpening
Blanket Implementations
Mutably borrows from an owned value. Read more