RemoteWebElementFindElementsById 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 ReadOnlyCollection<IWebElement> FindElementsById(
	string id
)

Parameters

id
Type: SystemString
ID of the Element

Return Value

Type: ReadOnlyCollectionIWebElement
ReadOnlyCollection of Elements that match the object so that you can interact that object

Implements

IFindsByIdFindElementsById(String)
Examples

IWebDriver driver = new RemoteWebDriver(DesiredCapabilities.Firefox());
ReadOnlyCollection<IWebElement> elem = driver.FindElementsById("id")
See Also

Reference