Click or drag to resize

ISearchContextGetElementById Method

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

Namespace:  DotNetBrowser.Dom
Assembly:  DotNetBrowser (in DotNetBrowser.dll) Version: 2.22.0
Syntax
C#
IElement GetElementById(
	string id
)

Parameters

id
Type: SystemString
a string that represents the id attribute of the HTML element.

Return Value

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