Table of Contents

Interface IFindsElement

Namespace
OpenQA.Selenium.Internal
Assembly
WebDriver.dll

Defines the interface through which the user finds elements by a strategy and value.

public interface IFindsElement

Methods

FindElement(string, string)

Finds the first element matching the specified value using the specified mechanism.

IWebElement FindElement(string mechanism, string value)

Parameters

mechanism string

The mechanism to use when matching.

value string

The value to match.

Returns

IWebElement

The first IWebElement matching the criteria.

FindElements(string, string)

Finds all elements matching the specified value using the specified mechanism.

ReadOnlyCollection<IWebElement> FindElements(string mechanism, string value)

Parameters

mechanism string

The mechanism to use when matching.

value string

The value to match.

Returns

ReadOnlyCollection<IWebElement>

IWebElements matching the criteria.