Table of Contents

Class UnexpectedTagNameException

Namespace
OpenQA.Selenium.Support.UI
Assembly
WebDriver.Support.dll

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 string

The 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 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.

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)

Parameters

expected string

The tag name that was expected.

actual string

The actual tag name of the element.