RemoteWebDriver FindElement 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: 2.35.0.0 (2.35.0.0)
Syntax

public IWebElement FindElement(
	By by
)

Return Value

IWebElement object so that you can interact with that object

Implements

ISearchContext FindElement(By)
Examples

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