IFindsByXPathFindElementByXPath Method WebDriver
Finds the first element matching the specified XPath query.

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

IWebElement FindElementByXPath(
	string xpath
)

Parameters

xpath
Type: SystemString
The XPath query to match.

Return Value

Type: IWebElement
The first IWebElement matching the criteria.
See Also

Reference