wdio-ui5-service
Version:
WebdriverIO plugin for testing UI5 browser-based apps
13 lines • 710 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.clientSide_checkForWdi5BrowserReady = clientSide_checkForWdi5BrowserReady;
async function clientSide_checkForWdi5BrowserReady(browserInstance) {
return await browserInstance.execute(async function wdi5_checkForWdi5BrowserReady() {
if (!window.wdi5 || !window.bridge) {
const wdi5MissingErr = new Error(`WDI5 is not available in the browser context! window.wdi5: ${!!window.wdi5} | window.bridge: ${!!window.bridge}`);
console.error(wdi5MissingErr); // eslint-disable-line no-console
throw wdi5MissingErr;
}
});
}
//# sourceMappingURL=checkForWdi5BrowserReady.js.map