Click or drag to resize

ISearchContext.GetElementByName Method

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

Namespace:  DotNetBrowser.Dom
Assembly:  DotNetBrowser (in DotNetBrowser.dll) Version: 2.27.7
Syntax
C#
IElement GetElementByName(
	string name
)

Parameters

name
Type: System.String
The name attribute of the HTML element.

Return Value

Type: IElement
The first IElement object found in the current search context by the given name or null 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