ISearchContextFindElement Method WebDriver
Finds the first IWebElement using the given method.

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

IWebElement FindElement(
	By by
)

Parameters

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

Return Value

Type: IWebElement
The first matching IWebElement on the current context.
Exceptions

ExceptionCondition
NoSuchElementExceptionIf no element matches the criteria.
See Also

Reference