diff --git a/client-side-js/_getAggregation.js b/client-side-js/_getAggregation.js index 0aad8f80..1cdb079f 100644 --- a/client-side-js/_getAggregation.js +++ b/client-side-js/_getAggregation.js @@ -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(() => { diff --git a/client-side-js/getControl.js b/client-side-js/getControl.js index 0162ee92..e973fad3 100644 --- a/client-side-js/getControl.js +++ b/client-side-js/getControl.js @@ -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) {