RemoteWebElementFindElementByTagName Method WebDriver
Finds the first of elements that match the DOM Tag supplied

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

public IWebElement FindElementByTagName(
	string tagName
)

Parameters

tagName
Type: SystemString
tag name of the element

Return Value

Type: IWebElement
IWebElement object so that you can interact that object

Implements

IFindsByTagNameFindElementByTagName(String)
Examples

IWebDriver driver = new RemoteWebDriver(DesiredCapabilities.Firefox());
IWebElement elem = driver.FindElementsByTagName("tag")
See Also

Reference