Table of Contents

Interface IFindsByTagName

Namespace
OpenQA.Selenium.Internal
Assembly
WebDriver.dll

Defines the interface through which the user finds elements by their tag name.

public interface IFindsByTagName

Methods

FindElementByTagName(string)

Finds the first element matching the specified tag name.

IWebElement FindElementByTagName(string tagName)

Parameters

tagName string

The tag name to match.

Returns

IWebElement

The first IWebElement matching the criteria.

FindElementsByTagName(string)

Finds all elements matching the specified tag name.

ReadOnlyCollection<IWebElement> FindElementsByTagName(string tagName)

Parameters

tagName string

The tag name to match.

Returns

ReadOnlyCollection<IWebElement>

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