Table of Contents

Class HandleJavaScriptDialogCommandSettings

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

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

public sealed class HandleJavaScriptDialogCommandSettings : ICommand
Inheritance
HandleJavaScriptDialogCommandSettings
Implements
Inherited Members

Properties

Accept

Whether to accept or dismiss the dialog.

[JsonPropertyName("accept")]
public bool Accept { get; set; }

Property Value

bool

CommandName

Gets the name of the command.

[JsonIgnore]
public string CommandName { get; }

Property Value

string

PromptText

The text to enter into the dialog prompt before accepting. Used only if this is a prompt dialog.

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

Property Value

string