Skip to content

Commit

Permalink
feat(wdio-ui5-service): assert ui5 page
Browse files Browse the repository at this point in the history
  • Loading branch information
vobu committed Feb 13, 2022
1 parent 4f3097a commit a74667f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/lib/wdi5-bridge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,13 @@ export async function injectUI5(config: wdi5Config) {
return result
}

export async function checkForUI5Page() {
// sap in global window namespace denotes (most likely :) ) that ui5 is present
return await browser.executeAsync((done) => {
done(!!window.sap)
})
}

//******************************************************************************************

/**
Expand Down

0 comments on commit a74667f

Please sign in to comment.