Version:
interface
WindowInterface
typescript
interface WindowInterfaceMethods
find
find(searchInput: { by: { description: WindowElementDescription }; id: string; type: "window-element" } | Promise<{ by: { description: WindowElementDescription }; id: string; type: "window-element" }>): Promise<WindowElement>Parameters
searchInput{ by: { description: WindowElementDescription }; id: string; type: "window-element" } | Promise<{ by: { description: WindowElementDescription }; id: string; type: "window-element" }>Returns
Promise<WindowElement>findAll
findAll(searchInput: { by: { description: WindowElementDescription }; id: string; type: "window-element" } | Promise<{ by: { description: WindowElementDescription }; id: string; type: "window-element" }>): Promise<WindowElement[]>Parameters
searchInput{ by: { description: WindowElementDescription }; id: string; type: "window-element" } | Promise<{ by: { description: WindowElementDescription }; id: string; type: "window-element" }>Returns
Promise<WindowElement[]>focus
focus(): Promise<boolean>Returns
Promise<boolean>getElements
getElements(maxElements?: number): Promise<WindowElement>Parameters
maxElements?numberReturns
Promise<WindowElement>getTitle
getTitle(): Promise<string>Returns
Promise<string>on
on(searchInput: { by: { description: WindowElementDescription }; id: string; type: "window-element" }, callback: WindowElementCallback): voidParameters
searchInput{ by: { description: WindowElementDescription }; id: string; type: "window-element" }callbackWindowElementCallbackwaitFor
waitFor(searchInput: { by: { description: WindowElementDescription }; id: string; type: "window-element" } | Promise<{ by: { description: WindowElementDescription }; id: string; type: "window-element" }>, timeoutMs?: number, updateInterval?: number, params?: OptionalSearchParameters<PROVIDER_DATA_TYPE>): Promise<WindowElement>Parameters
searchInput{ by: { description: WindowElementDescription }; id: string; type: "window-element" } | Promise<{ by: { description: WindowElementDescription }; id: string; type: "window-element" }>timeoutMs?numberupdateInterval?numberparams?OptionalSearchParameters<PROVIDER_DATA_TYPE>Returns
Promise<WindowElement>Was this page helpful?