Table of Contents

Interface IFindsByXPath

Namespace
OpenQA.Selenium.Internal
Assembly
WebDriver.dll

Defines the interface through which the user finds elements by XPath.

public interface IFindsByXPath

Methods

FindElementByXPath(string)

Finds the first element matching the specified XPath query.

IWebElement FindElementByXPath(string xpath)

Parameters

xpath string

The XPath query to match.

Returns

IWebElement

The first IWebElement matching the criteria.

FindElementsByXPath(string)

Finds all elements matching the specified XPath query.

ReadOnlyCollection<IWebElement> FindElementsByXPath(string xpath)

Parameters

xpath string

The XPath query to match.

Returns

ReadOnlyCollection<IWebElement>

A ReadOnlyCollection<T> containing all IWebElements matching the criteria.