Class UnexpectedTagNameException
The exception thrown when using the Select class on a tag that does not support the HTML select element's selection semantics.
[Serializable]
public class UnexpectedTagNameException : WebDriverException, ISerializable
- Inheritance
-
UnexpectedTagNameException
- Implements
- Inherited Members
Constructors
UnexpectedTagNameException()
Initializes a new instance of the UnexpectedTagNameException class.
public UnexpectedTagNameException()
UnexpectedTagNameException(string?)
Initializes a new instance of the UnexpectedTagNameException class with a specified error message.
public UnexpectedTagNameException(string? message)
Parameters
message
stringThe message of the exception
UnexpectedTagNameException(string?, Exception?)
Initializes a new instance of the UnexpectedTagNameException class with a specified error message and a reference to the inner exception that is the cause of this exception.
public UnexpectedTagNameException(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.
UnexpectedTagNameException(string, string)
Initializes a new instance of the UnexpectedTagNameException class with the expected tag name and the actual tag name.
public UnexpectedTagNameException(string expected, string actual)