Click or drag to resize

ISearchContextGetElementsByName Method

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

Namespace:  DotNetBrowser.Dom
Assembly:  DotNetBrowser (in DotNetBrowser.dll) Version: 2.23.2
Syntax
C#
IEnumerable<IElement> GetElementsByName(
	string name
)

Parameters

name
Type: SystemString
The name attribute of the HTML element.

Return Value

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