ByTagName Method WebDriver
Gets a mechanism to find elements by their tag name.

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

public static By TagName(
	string tagNameToFind
)

Parameters

tagNameToFind
Type: SystemString
The tag name to find.

Return Value

Type: By
A By object the driver can use to find the elements.
See Also

Reference