Skip to content

Commit

Permalink
fix: make usable in fluent async api
Browse files Browse the repository at this point in the history
  • Loading branch information
vobu committed Feb 16, 2022
1 parent 9fabcac commit 6300a1b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion client-side-js/_getAggregation.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
async function clientSide_getAggregation(webElement, aggregationName) {
webElement = await Promise.resolve(webElement)
webElement = await Promise.resolve(webElement) // to plug into fluent async api
return await browser.executeAsync(
(webElement, aggregationName, done) => {
window.bridge.waitForUI5(window.wdi5.waitForUI5Options).then(() => {
Expand Down
1 change: 1 addition & 0 deletions client-side-js/getControl.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
async function clientSide_getControl(controlSelector) {
controlSelector = await Promise.resolve(controlSelector) // to plug into fluent async api
return await browser.executeAsync((controlSelector, done) => {
const waitForUI5Options = Object.assign({}, window.wdi5.waitForUI5Options)
if (controlSelector.timeout) {
Expand Down

0 comments on commit 6300a1b

Please sign in to comment.