Call of getControl() fails after page relod with Error: waitAsync is already running #347
Unanswered
Scotti-Scholter-Marichal
asked this question in
Q&A
Replies: 1 comment 2 replies
-
could you maybe try to use If the issue still occurs maybe you can add a check that the reloading really is finished and only after that try to injectUI5. await browser.executeAsync(...);
// wait till the reload is finished
await browser.$("#selectorOfTheUI5Application").waitForDisplayed()
await ui5service.injectUI5() Regards, |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi everyone,
I hope this is the right section to ask quetions like these, otherwise please let me know.
I am writing E2E tests for a UI5 application with WDI5 and I am stuck trying to do a relatively simple task.
I want to reload / refresh the opened page.
Currently I am using:
await browser.execute("location.reload(true);");
to reload the page and afterwards I inject UI5 with the following code:
await ui5Service.injectUI5();
I have previously imported the ui5Service:
const { default: _ui5Service } = require("wdio-ui5-service"); const ui5Service = new _ui5Service();
The problem is, that if I now try to get a control with browser.getControl() after the reload, it fails with the following error:
I am not sure how to fix this error and would appreciate any advise.
Thank you in advance!
Best wishes.
Beta Was this translation helpful? Give feedback.
All reactions