ISearchContextFindElements Method WebDriver
Finds all IWebElements within the current context using the given mechanism.

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

ReadOnlyCollection<IWebElement> FindElements(
	By by
)

Parameters

by
Type: OpenQA.SeleniumBy
The locating mechanism to use.

Return Value

Type: ReadOnlyCollectionIWebElement
A ReadOnlyCollectionT of all WebElements matching the current criteria, or an empty list if nothing matches.
See Also

Reference