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

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

public ReadOnlyCollection<IWebElement> FindElementsByClassName(
	string className
)

Return Value

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

Implements

IFindsByClassName FindElementsByClassName(String)
Examples

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