RemoteWebElementFindElementByXPath Method WebDriver
Finds the first of elements that match the XPath supplied

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

public IWebElement FindElementByXPath(
	string xpath
)

Parameters

xpath
Type: SystemString
xpath to the element

Return Value

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

Implements

IFindsByXPathFindElementByXPath(String)
Examples

IWebDriver driver = new RemoteWebDriver(DesiredCapabilities.Firefox());
IWebElement elem = driver.FindElementsByXPath("//table/tbody/tr/td/a");
See Also

Reference