Class StaleElementReferenceException
The exception that is thrown when a reference to an element is no longer valid.
public class StaleElementReferenceException : WebDriverException, ISerializable
- Inheritance
-
StaleElementReferenceException
- Implements
- Inherited Members
Constructors
StaleElementReferenceException()
Initializes a new instance of the StaleElementReferenceException class.
public StaleElementReferenceException()
StaleElementReferenceException(SerializationInfo, StreamingContext)
Initializes a new instance of the StaleElementReferenceException class with serialized data.
protected StaleElementReferenceException(SerializationInfo info, StreamingContext context)
Parameters
info
SerializationInfoThe SerializationInfo that holds the serialized object data about the exception being thrown.
context
StreamingContextThe StreamingContext that contains contextual information about the source or destination.
StaleElementReferenceException(string)
Initializes a new instance of the StaleElementReferenceException class with a specified error message.
public StaleElementReferenceException(string message)
Parameters
message
stringThe message that describes the error.
StaleElementReferenceException(string, Exception)
Initializes a new instance of the StaleElementReferenceException class with a specified error message and a reference to the inner exception that is the cause of this exception.
public StaleElementReferenceException(string message, Exception innerException)