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

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

public IWebElement FindElementByTagName(
	string tagName
)

Parameters

tagName
Type: OnlineSystem String
DOM tag Name of the element being searched

Return Value

IWebElement object so that you can interact that object

Implements

IFindsByTagName FindElementByTagName(String)
Examples

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