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