Table of Contents

Interface IFindsByCssSelector

Namespace
OpenQA.Selenium.Internal
Assembly
WebDriver.dll

Defines the interface through which the user finds elements by their cascading style sheet (CSS) selector.

public interface IFindsByCssSelector

Methods

FindElementByCssSelector(string)

Finds the first element matching the specified CSS selector.

IWebElement FindElementByCssSelector(string cssSelector)

Parameters

cssSelector string

The id to match.

Returns

IWebElement

The first IWebElement matching the criteria.

FindElementsByCssSelector(string)

Finds all elements matching the specified CSS selector.

ReadOnlyCollection<IWebElement> FindElementsByCssSelector(string cssSelector)

Parameters

cssSelector string

The CSS selector to match.

Returns

ReadOnlyCollection<IWebElement>

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