-
-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Loop in COMMAND ocrGetText(<object>) #657
Comments
Can you provide a simple, reproducible example? |
Hi @wswebcreation, I recreate an new project to have an example and didn't reproduce the issue. I found somethins suspicious: I don't know why and even if I delete my node_modules folder and do again an npm install, the result is the same. Do you have any idea of what can produce the behavior ? I manually did a 'npm install @wdio/types' and now it's up-to-date. |
The update of @wdio/types doesn't fix my issue. I have a lead in this discord conversation about multiremote capabilties: |
Thanks for all info, my time is limited, but I think I can take a look at it this weekend. Can you provide is minimal producible exmaple, with all configs, package.json and a simple test? |
Hi @wswebcreation, Thank you for your help |
According to my following analysis, the issue started with @wdio/[email protected]. Original dependencies"devDependencies": { Not working target dependencies"devDependencies": { Step by step update➤ FIRST update: ➤ SECOND update: ➤ THIRD update: ➤ FOURTH update: ➤ FIRST downgrade: ➤ SECOND downgrade: ➤ Return to "THIRD update" : ➤ FIFTH update : |
Thanks, I'll take a look this weekend |
Hello, My example are finally ready. PackageExamplesThe package is for both: ScriptsPackage scripts are available:
Notes
Thank you @wswebcreation and have a nice day, |
The origin of the loop is explain in my other #656 (comment) |
Thanks @wswebcreation, have a nice day |
I found the problem with the loop, I have a fix for it, but now I have an issue with the commands on the browser object like I need to think about how to solve this, hope to have this fixed by the end of the week |
Hi @wswebcreation, Ok, I don't know how you fixed it but from my understanding:
So a mix between the two implementation with an extension to the overwriteCommand is supposed to be, from my point of view, the solution. Something like that ?
Tell me if I can help and have a nice day. |
The fix in the WebdriverIO package seems to be breaking stuff for multi-remote implementations. We (mainly @christian-bromann 😅 ) are looking into fixing/reverting it. The issue is that you can now not handle/manipulate the execution order when the commands are added to the browser-object. Modules that use the multiremote implementation will now only get the multiremote contexts instead of having the option to adjust how the browser instances are executed. |
Environment (please complete the following information):
@wdio/visual-service
version: 6.2.2@wdio/mocha-framework
version: 9.2.8@wdio/local-runner
version: 9.4.1@wdio/globals
version: 9.4.1@wdio/cli
version: 9.4.1Appium
version: 2.11.5tsx
version: 4.19.2Config of WebdriverIO +
@wdio/visual-service
Describe the bug
After my typescript migration, it no longer work, it enter in a COMMAND ocrGetText() loop.
Expected behavior
The text is detected or if not, the following message is return "Error: An error happened when parsing the getNodeOcrData, see: Error: No text was found for the OCR, please verify the stored image."
Additional context
I'm using typescript and my tsconfig contain:
The text was updated successfully, but these errors were encountered: