Table of Contents

Class WebDriverArgumentException

Namespace
OpenQA.Selenium
Assembly
WebDriver.dll

Represents exceptions that are thrown when an invalid argument is passed to a WebDriver command.

[Serializable]
public class WebDriverArgumentException : WebDriverException, ISerializable
Inheritance
WebDriverArgumentException
Implements
Inherited Members

Constructors

WebDriverArgumentException()

Initializes a new instance of the WebDriverArgumentException class.

public WebDriverArgumentException()

WebDriverArgumentException(string?)

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

public WebDriverArgumentException(string? message)

Parameters

message string

The message that describes the error.

WebDriverArgumentException(string?, Exception?)

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

public WebDriverArgumentException(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.