Finds the first of elements that match the DOM Tag supplied
Namespace: OpenQA.Selenium.RemoteAssembly: WebDriver (in WebDriver.dll) Version: 2.35.0.0 (2.35.0.0)
Syntax
public IWebElement FindElementByTagName( string tagName )
Parameters
- tagName
- Type:
System String
DOM tag Name of the element being searched
Return Value
IWebElement object so that you can interact that objectImplements
IFindsByTagName FindElementByTagName(String)Examples
IWebDriver driver = new RemoteWebDriver(DesiredCapabilities.Firefox()); IWebElement elem = driver.FindElementsByTagName("tag")
See Also