RemoteWebElementFindElementById Method WebDriver
Finds the first element in the page that matches the ID supplied

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

public IWebElement FindElementById(
	string id
)

Parameters

id
Type: SystemString
ID of the element

Return Value

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

Implements

IFindsByIdFindElementById(String)
Examples

IWebDriver driver = new RemoteWebDriver(DesiredCapabilities.Firefox());
IWebElement elem = driver.FindElementById("id")
See Also

Reference