UNPKG

wdio-ui5-service

Version:

WebdriverIO plugin for testing UI5 browser-based apps

34 lines 1.25 kB
import type Control from "sap/ui/core/Control"; import type { wdi5Config, wdi5Selector } from "./wdi5.types.js"; import type { WDI5Control } from "../lib/wdi5-control.js"; import type { WDI5FE } from "../lib/wdi5-fe.js"; /** * wdi5 control cache aka * wdi5 keeping score of already retrieved UI5 controls */ type cachedControl = { [key: string]: Control; }; declare global { namespace WebdriverIO { interface Browser { config: wdi5Config; _asControl: <T extends Control = Control>(arg: wdi5Selector) => Promise<WDI5Control & T>; asControl: <T extends Control = Control>(arg: wdi5Selector) => Promise<WDI5Control & T>; allControls: <T extends Control = Control>(arg: wdi5Selector) => Promise<(WDI5Control & T)[]>; screenshot: (arg: string) => Promise<void>; goTo: (arg: string | object) => Promise<void>; /** * adding the wdi5 control cache to the global browser object */ _controls: cachedControl[]; fe: typeof WDI5FE; getUI5Version: () => Promise<string>; } } } declare global { var __wdi5Config: wdi5Config; } export {}; //# sourceMappingURL=browser-commands.d.ts.map