Version:
interface

ElementInspectionProviderInterface

An ElementInspectionProvider provides methods to list and inspect window elements

typescript
interface ElementInspectionProviderInterface

Methods

findElement

findElement(windowHandle: number, description: WindowElementDescription): Promise<WindowElement>

Finds a single element in a window matching the given description

Parameters

windowHandlenumberThe handle of the window to search in
descriptionWindowElementDescriptionThe to match against

Returns

Promise<WindowElement>

findElements

findElements(windowHandle: number, description: WindowElementDescription): Promise<WindowElement[]>

Finds all elements in a window matching the given description

Parameters

windowHandlenumberThe handle of the window to search in
descriptionWindowElementDescriptionThe to match against

Returns

Promise<WindowElement[]>

getElements

getElements(windowHandle: number, maxElements?: number): Promise<WindowElement>

Retrieves the element tree for a given window

Parameters

windowHandlenumberThe handle of the window to inspect
maxElements?numberOptional maximum number of elements to retrieve

Returns

Promise<WindowElement>

Was this page helpful?