Table of Contents

Method GetElementByClassName

Namespace
DotNetBrowser.Dom
Assembly
DotNetBrowser.dll

GetElementByClassName(string)

Finds the first IElement object in the current search context by the given className.

IElement GetElementByClassName(string className)

Parameters

className string

The class attribute of the HTML element.

Returns

IElement

The first IElement object found in the current search context by the given className or null if no elements were found.

Exceptions

ArgumentException

The className is null, empty or contains only blank characters.

ObjectDisposedException

The ISearchContext has already been disposed.