RemoteWebDriver FindElements Method (By)WebDriver
Finds the elements on the page by using the By object and returns a ReadOnlyCollection of the Elements on the page

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

public ReadOnlyCollection<IWebElement> FindElements(
	By by
)

Return Value

ReadOnlyCollection of IWebElement

Implements

ISearchContext FindElements(By)
Examples

IWebDriver driver = new InternetExplorerDriver();
ReadOnlyCollection<IWebElement> classList = driver.FindElements(By.ClassName("class"));
See Also