ISearchContextGetElementsByClassName Method |
Finds all
IElement objects in the current search context by the given
className.
Namespace:
DotNetBrowser.Dom
Assembly:
DotNetBrowser (in DotNetBrowser.dll) Version: 2.14.0
Syntax IEnumerable<IElement> GetElementsByClassName(
string className
)
Parameters
- className
- Type: SystemString
The class attribute of the HTML element.
Return Value
Type:
IEnumerableIElement
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 Exception | Condition |
---|
ArgumentException | The className is null, empty or contains only blank characters. |
ObjectDisposedException | The ISearchContext has already been disposed. |
See Also