IWebElement TagName Property WebDriver
Gets the tag name of this element.

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

string TagName { get; }
Exceptions

ExceptionCondition
OpenQA.Selenium 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