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