Table of Contents

Method GetElementByName

Namespace
DotNetBrowser.Dom
Assembly
DotNetBrowser.dll

GetElementByName(string)

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

IElement GetElementByName(string name)

Parameters

name string

The name attribute of the HTML element.

Returns

IElement

The first IElement object found in the current search context by the given name or null if no elements were found.

Exceptions

ArgumentException

The name is null, empty or contains only blank characters.

ObjectDisposedException

The ISearchContext has already been disposed.