Skip to content

Commit

Permalink
fix: work getWebElement with fluent async api
Browse files Browse the repository at this point in the history
  • Loading branch information
vobu committed Feb 15, 2022
1 parent c3dc3eb commit 07fd194
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/lib/wdi5-control.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,13 @@ export class WDI5Control {
* @return {WebdriverIO.Element} the webdriver Element
*/
async getWebElement() {
if (this._forceSelect) {
await this.renewWebElementReference()
}
//// TODO: check this "fix"
//// why is the renew necessary here?
//// it causes hiccup with the fluent async api as the transition from node-scope
//// to browser-scope errors out (in .getControl client-side)
// if (this._forceSelect) {
// await this.renewWebElementReference()
// }
return this._webdriverRepresentation
}

Expand Down

0 comments on commit 07fd194

Please sign in to comment.