RemoteWebElementTagName Property WebDriver
Gets the tag name of this element.

Namespace: OpenQA.Selenium.Remote
Assembly: WebDriver (in WebDriver.dll) Version: 3.1.0
Syntax

public string TagName { get; }

Property Value

Type: String

Implements

IWebElementTagName
Exceptions

ExceptionCondition
StaleElementReferenceExceptionThrown when the target element is no longer valid in the document DOM.
Remarks

The TagName property returns the tag name of the element, not the value of the name attribute. For example, it will return "input" for an element specified by the HTML markup <input name="foo" />.
See Also

Reference