Table of Contents

Class UserPromptHandler

Namespace
OpenQA.Selenium
Assembly
Selenium.WebDriver.dll

Represents a WebDriver session's user prompt handler, which defines how unhandled browser prompts (alerts, confirms, prompts, beforeunload dialogs, file selection dialogs) are managed during automation.

public abstract record UserPromptHandler : IEquatable<UserPromptHandler>
Inheritance
UserPromptHandler
Implements
Derived
Inherited Members

Remarks

This corresponds to the W3C WebDriver unhandledPromptBehavior capability, which may be expressed either as a single string applied to all prompt types, or as a per-prompt-type map.

Available variants:

Operators

implicit operator UserPromptHandler?(UnhandledPromptBehavior?)

Converts a nullable UnhandledPromptBehavior to a UserPromptHandler instance, or null when value is null.

public static implicit operator UserPromptHandler?(UnhandledPromptBehavior? value)

Parameters

value UnhandledPromptBehavior?

The UnhandledPromptBehavior value to convert.

Returns

UserPromptHandler