ByFindElements Method WebDriver
Finds all elements matching the criteria.

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

public virtual ReadOnlyCollection<IWebElement> FindElements(
	ISearchContext context
)

Parameters

context
Type: OpenQA.SeleniumISearchContext
An ISearchContext object to use to search for the elements.

Return Value

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

Reference