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