RemoteWebDriver FindElementByClassName Method WebDriver
Finds the first element in the page that matches the CSS Class supplied

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

public IWebElement FindElementByClassName(
	string className
)

Return Value

IWebElement object so that you can interact that object

Implements

IFindsByClassName FindElementByClassName(String)
Examples

IWebDriver driver = new RemoteWebDriver(DesiredCapabilities.Firefox());
IWebElement elem = driver.FindElementByClassName("classname")
See Also