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
stringThe class attribute of the HTML element.
Returns
- IElement
The first IElement object found in the current search context by the given
className
ornull
if no elements were found.
Exceptions
- ArgumentException
The
className
is null, empty or contains only blank characters.- ObjectDisposedException
The ISearchContext has already been disposed.