Interface IFindsByXPath
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
stringThe 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
stringThe XPath query to match.
Returns
- ReadOnlyCollection<IWebElement>
A ReadOnlyCollection<T> containing all IWebElements matching the criteria.