RemoteWebElementFindElementsByXPath Method WebDriver
Finds a list of elements that match the XPath supplied

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

public ReadOnlyCollection<IWebElement> FindElementsByXPath(
	string xpath
)

Parameters

xpath
Type: SystemString
xpath to element on the page

Return Value

Type: ReadOnlyCollectionIWebElement
ReadOnlyCollection of IWebElement objects so that you can interact that object

Implements

IFindsByXPathFindElementsByXPath(String)
Examples

IWebDriver driver = new RemoteWebDriver(DesiredCapabilities.Firefox());
ReadOnlyCollection<IWebElement> elem = driver.FindElementsByXpath("//tr/td/a")
See Also

Reference