Interface IFindsById
Defines the interface through which the user finds elements by their ID.
public interface IFindsById
Methods
FindElementById(string)
Finds the first element matching the specified id.
IWebElement FindElementById(string id)
Parameters
id
stringThe id to match.
Returns
- IWebElement
The first IWebElement matching the criteria.
FindElementsById(string)
Finds all elements matching the specified id.
ReadOnlyCollection<IWebElement> FindElementsById(string id)
Parameters
id
stringThe id to match.
Returns
- ReadOnlyCollection<IWebElement>
A ReadOnlyCollection<T> containing all IWebElements matching the criteria.