RemoteWebElementFindElement Method (By)WebDriver
Finds the first IWebElement using the given method.

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

public 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.

Implements

ISearchContextFindElement(By)
Exceptions

ExceptionCondition
NoSuchElementExceptionIf no element matches the criteria.
See Also

Reference