Table of Contents

Interface IFindsById

Namespace
OpenQA.Selenium.Internal
Assembly
WebDriver.dll

Defines the interface through which the user finds elements by their ID.

public interface IFindsById

Methods

FindElementById(string)

Finds the first element matching the specified id.

IWebElement FindElementById(string id)

Parameters

id string

The id to match.

Returns

IWebElement

The first IWebElement matching the criteria.

FindElementsById(string)

Finds all elements matching the specified id.

ReadOnlyCollection<IWebElement> FindElementsById(string id)

Parameters

id string

The id to match.

Returns

ReadOnlyCollection<IWebElement>

A ReadOnlyCollection<T> containing all IWebElements matching the criteria.