RemoteWebDriverFindElementsByTagName Method WebDriver
Finds a list of elements that match the DOM Tag supplied

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

public ReadOnlyCollection<IWebElement> FindElementsByTagName(
	string tagName
)

Parameters

tagName
Type: SystemString
DOM tag Name of element being searched

Return Value

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

Implements

IFindsByTagNameFindElementsByTagName(String)
Examples

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

Reference