Table of Contents

Interface IFindsByClassName

Namespace
OpenQA.Selenium.Internal
Assembly
WebDriver.dll

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 string

The 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 string

The CSS class to match.

Returns

ReadOnlyCollection<IWebElement>

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