Method GetElementsByClassName
- Namespace
- DotNetBrowser.Dom
- Assembly
- DotNetBrowser.dll
GetElementsByClassName(string)
Finds all IElement objects in the current search context by the given className
.
IEnumerable<IElement> GetElementsByClassName(string className)
Parameters
className
stringThe
class
attribute of the HTML element.
Returns
- IEnumerable<IElement>
A collection of the IElement objects found in the current search context by the given
className
or an empty collection if no elements were found.
Exceptions
- ArgumentException
The
className
is null, empty or contains only blank characters.- ObjectDisposedException
The ISearchContext has already been disposed.