Interface IFindsByClassName
Defines the interface through which the user finds elements by their CSS class.
public interface IFindsByClassName
Methods
FindElementByClassName(string)
Finds the first element matching the specified CSS class.
IWebElement FindElementByClassName(string className)
Parameters
className
stringThe CSS class to match.
Returns
- IWebElement
The first IWebElement matching the criteria.
FindElementsByClassName(string)
Finds all elements matching the specified CSS class.
ReadOnlyCollection<IWebElement> FindElementsByClassName(string className)
Parameters
className
stringThe CSS class to match.
Returns
- ReadOnlyCollection<IWebElement>
A ReadOnlyCollection<T> containing all IWebElements matching the criteria.