Class UnhandledAlertException
The exception that is thrown when an unhandled alert is present.
[Serializable]
public class UnhandledAlertException : WebDriverException, ISerializable
- Inheritance
-
UnhandledAlertException
- Implements
- Inherited Members
Constructors
UnhandledAlertException()
Initializes a new instance of the UnhandledAlertException class.
public UnhandledAlertException()
UnhandledAlertException(string)
Initializes a new instance of the UnhandledAlertException class with a specified error message.
public UnhandledAlertException(string message)
Parameters
message
stringThe message that describes the error.
UnhandledAlertException(string, Exception)
Initializes a new instance of the UnhandledAlertException class with a specified error message and a reference to the inner exception that is the cause of this exception.
public UnhandledAlertException(string message, Exception innerException)
Parameters
message
stringThe error message that explains the reason for the exception.
innerException
ExceptionThe exception that is the cause of the current exception, or null if no inner exception is specified.
UnhandledAlertException(string, string)
Initializes a new instance of the UnhandledAlertException class with a specified error message and alert text.
public UnhandledAlertException(string message, string alertText)
Parameters
message
stringThe message that describes the error.
alertText
stringThe text of the unhandled alert.
Properties
AlertText
Gets the text of the unhandled alert.
public string AlertText { get; }