Table of Contents

Class NoAlertPresentException

Namespace
OpenQA.Selenium
Assembly
WebDriver.dll

The exception that is thrown when an alert is not found.

[Serializable]
public class NoAlertPresentException : NotFoundException, ISerializable
Inheritance
NoAlertPresentException
Implements
Inherited Members

Constructors

NoAlertPresentException()

Initializes a new instance of the NoAlertPresentException class.

public NoAlertPresentException()

NoAlertPresentException(string?)

Initializes a new instance of the NoAlertPresentException class with a specified error message.

public NoAlertPresentException(string? message)

Parameters

message string

The message that describes the error.

NoAlertPresentException(string?, Exception?)

Initializes a new instance of the NoAlertPresentException class with a specified error message and a reference to the inner exception that is the cause of this exception.

public NoAlertPresentException(string? message, Exception? innerException)

Parameters

message string

The error message that explains the reason for the exception.

innerException Exception

The exception that is the cause of the current exception, or null if no inner exception is specified.