RemoteWebDriver FindElementsByTagName Method WebDriver
Finds a list 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 ReadOnlyCollection<IWebElement> FindElementsByTagName(
	string tagName
)

Parameters

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

Return Value

IWebElement object so that you can interact that object

Implements

IFindsByTagName FindElementsByTagName(String)
Examples

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