Table of Contents

Class JavascriptDialogOpeningEventArgs

Namespace
OpenQA.Selenium.DevTools.V146.Page
Assembly
Selenium.WebDriver.dll

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

public sealed class JavascriptDialogOpeningEventArgs : EventArgs
Inheritance
JavascriptDialogOpeningEventArgs
Inherited Members

Properties

DefaultPrompt

Default dialog prompt.

[JsonPropertyName("defaultPrompt")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public string? DefaultPrompt { get; set; }

Property Value

string

FrameId

Frame id.

[JsonPropertyName("frameId")]
public string FrameId { get; set; }

Property Value

string

HasBrowserHandler

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.

[JsonPropertyName("hasBrowserHandler")]
public bool HasBrowserHandler { get; set; }

Property Value

bool

Message

Message that will be displayed by the dialog.

[JsonPropertyName("message")]
public string Message { get; set; }

Property Value

string

Type

Dialog type.

[JsonPropertyName("type")]
public DialogType Type { get; set; }

Property Value

DialogType

Url

Frame url.

[JsonPropertyName("url")]
public string Url { get; set; }

Property Value

string