RemoteWebDriverFindElement Method (By)WebDriver
Finds the first element in the page that matches the By object

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

public IWebElement FindElement(
	By by
)

Parameters

by
Type: OpenQA.SeleniumBy
By mechanism to find the object

Return Value

Type: IWebElement
IWebElement object so that you can interact with that object

Implements

ISearchContextFindElement(By)
Examples

IWebDriver driver = new InternetExplorerDriver();
IWebElement elem = driver.FindElement(By.Name("q"));
See Also

Reference