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