Table of Contents

Class InvalidElementStateException

Namespace
OpenQA.Selenium
Assembly
WebDriver.dll

The exception that is thrown when a reference to an element is no longer valid.

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

Constructors

InvalidElementStateException()

Initializes a new instance of the InvalidElementStateException class.

public InvalidElementStateException()

InvalidElementStateException(string?)

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

public InvalidElementStateException(string? message)

Parameters

message string

The message that describes the error.

InvalidElementStateException(string?, Exception?)

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

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