Click or drag to resize

ISearchContext.GetElementByClassName Method

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

Namespace:  DotNetBrowser.Dom
Assembly:  DotNetBrowser (in DotNetBrowser.dll) Version: 2.23.1
Syntax
C#
IElement GetElementByClassName(
	string className
)

Parameters

className
Type: System.String
The class attribute of the HTML element.

Return Value

Type: IElement
The first IElement object found in the current search context by the given className or null if no elements were found.
Exceptions
ExceptionCondition
ArgumentExceptionThe className is null, empty or contains only blank characters.
ObjectDisposedExceptionThe ISearchContext has already been disposed.
See Also