RemoteWebDriverFindElementsByClassName Method WebDriver
Finds a list of elements that match the class name supplied

Namespace: OpenQA.Selenium.Remote
Assembly: WebDriver (in WebDriver.dll) Version: 3.1.0
Syntax

public ReadOnlyCollection<IWebElement> FindElementsByClassName(
	string className
)

Parameters

className
Type: SystemString
CSS class Name on the element

Return Value

Type: ReadOnlyCollectionIWebElement
ReadOnlyCollection of IWebElement object so that you can interact with those objects

Implements

IFindsByClassNameFindElementsByClassName(String)
Examples

IWebDriver driver = new RemoteWebDriver(DesiredCapabilities.Firefox());
ReadOnlyCollection<IWebElement> elem = driver.FindElementsByClassName("classname")
See Also

Reference