Compartir a través de


WebDataDrivenAdapter.FindControlHtmlElement(String, Boolean) Method

Definition

Important

This API is not CLS-compliant.

Finds the operable HTML elements.

protected:
 mshtml::IHTMLElement ^ FindControlHtmlElement(System::String ^ controlName, bool throwExceptionIfNotFound);
[System.CLSCompliant(false)]
protected mshtml.IHTMLElement FindControlHtmlElement (string controlName, bool throwExceptionIfNotFound);
[<System.CLSCompliant(false)>]
member this.FindControlHtmlElement : string * bool -> mshtml.IHTMLElement
Protected Function FindControlHtmlElement (controlName As String, throwExceptionIfNotFound As Boolean) As IHTMLElement

Parameters

controlName
String

Specifies the control bindings used to search for the element.

throwExceptionIfNotFound
Boolean

Throws an exception when the element can’t be found.

Returns

Target HTMLElement if found; null otherwise.

Attributes

Exceptions

Thrown when no match path element is found or when target control is not found on the UI and throwExceptionIfNotFound=true.

Some accesses to the underlying Internet Explorer document object can throw this exception.

Applies to