weikaopu-wdio-ui5-service
Version:
WebdriverIO plugin for testing UI5 browser-based apps
28 lines • 1 kB
TypeScript
import Control from "sap/ui/core/Control";
import { wdi5Config, wdi5Selector } from "./wdi5.types.js";
import { WDI5Control } from "../lib/wdi5-control.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>;
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[];
getUI5Version: () => Promise<string>;
}
}
}
export {};
//# sourceMappingURL=browser-commands.d.ts.map