Interface IFindsByCssSelector
Defines the interface through which the user finds elements by their cascading style sheet (CSS) selector.
public interface IFindsByCssSelector
Methods
FindElementByCssSelector(string)
Finds the first element matching the specified CSS selector.
IWebElement FindElementByCssSelector(string cssSelector)
Parameters
cssSelector
stringThe id to match.
Returns
- IWebElement
The first IWebElement matching the criteria.
FindElementsByCssSelector(string)
Finds all elements matching the specified CSS selector.
ReadOnlyCollection<IWebElement> FindElementsByCssSelector(string cssSelector)
Parameters
cssSelector
stringThe CSS selector to match.
Returns
- ReadOnlyCollection<IWebElement>
A ReadOnlyCollection<T> containing all IWebElements matching the criteria.