ByFindElement Method WebDriver
Finds the first element matching the criteria.

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

public virtual IWebElement FindElement(
	ISearchContext context
)

Parameters

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

Return Value

Type: IWebElement
The first matching IWebElement on the current context.
See Also

Reference