Method GetElementsByName
- Namespace
- DotNetBrowser.Dom
- Assembly
- DotNetBrowser.dll
GetElementsByName(string)
Finds all IElement objects in the current search context by the given name.
IEnumerable<IElement> GetElementsByName(string name)
Parameters
namestringThe
nameattribute of the HTML element.
Returns
- IEnumerable<IElement>
a collection of the IElement objects found in the current search context by the given
nameor an empty collection if no elements were found.
Exceptions
- ArgumentException
The
nameis null, empty or contains only blank characters.- ObjectDisposedException
The ISearchContext has already been disposed.