Version:
interface
ElementInspectionProviderInterface
An ElementInspectionProvider provides methods to list and inspect window elements
typescript
interface ElementInspectionProviderInterfaceMethods
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 inReturns
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 inReturns
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 inspectmaxElements?numberOptional maximum number of elements to retrieveReturns
Promise<WindowElement>Was this page helpful?