UNPKG

wdio-ui5-service

Version:

WebdriverIO plugin for testing UI5 browser-based apps

18 lines 718 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.clientSide_getUI5Version = clientSide_getUI5Version; /** * @returns {string} UI5 version number in string form */ async function clientSide_getUI5Version(browserInstance) { return await browserInstance.execute(async function wdi5_getUI5Version() { const [VersionInfo] = await new Promise((resolve, reject) => { sap.ui.require(["sap/ui/VersionInfo"], function (...args) { resolve(args); }, reject); }); const versionInfo = (await VersionInfo.load({ library: "sap.ui.core" })); return versionInfo.version; }); } //# sourceMappingURL=getUI5Version.js.map