Error waitAsync is already running and cannot be called again at this moment #381
Unanswered
Scotti-Scholter-Marichal
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I keep running into this error and no matter what I do it does not seem to be solvable.
The process is as followed:
await browser.url(url)
) to a login page which does not use UI5 and therefore the $ function of wdio needs to be used to retrieve web elements.const userElement = await $(cssUserSelector); const passElement = await $(cssPassSelector); await userElement.setValue(username); await passElement.setValue(password); await logonElement.click();
await ui5Service.injectUI5();
after importing ui5Service as followedconst { default: _ui5Service } = require("wdio-ui5-service"); const ui5Service = new _ui5Service();
If you now try to retrieve a control with
browser.asControl(selector)
or use any wdi5 function it throws the above errorI've also tried to wait some time for the page to fully load before injecting UI5, but it still did not work.
If there is anything I did wrong or misunderstood please let me know.
Thanks in advance!
Best wishes,
Scotti
Beta Was this translation helpful? Give feedback.
All reactions