Click or drag to resize

ISearchContextGetElementByTagName Method

Finds the first IElement object in the current search context by the given tag name.

Namespace:  DotNetBrowser.Dom
Assembly:  DotNetBrowser (in DotNetBrowser.dll) Version: 2.27.5
Syntax
C#
IElement GetElementByTagName(
	string tagName
)

Parameters

tagName
Type: SystemString
The tag name of the HTML element.

Return Value

Type: IElement
the first IElement object found in the current search context by the given tag name or null if no elements were found.
Exceptions
ExceptionCondition
ArgumentExceptionThe tagName is null, empty or contains only blank characters.
ObjectDisposedExceptionThe ISearchContext has already been disposed.
See Also