Click or drag to resize

ISearchContext.GetElementsByTagName Method

Finds all IElement objects in the current search context by the given tag name.

Namespace:  DotNetBrowser.Dom
Assembly:  DotNetBrowser (in DotNetBrowser.dll) Version: 2.26.0
Syntax
C#
IEnumerable<IElement> GetElementsByTagName(
	string tagName
)

Parameters

tagName
Type: System.String
The tag name of the HTML element.

Return Value

Type: 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
ExceptionCondition
ArgumentExceptionThe tagName is null, empty or contains only blank characters.
ObjectDisposedExceptionThe ISearchContext has already been disposed.
See Also