Frequently Asked Questions
My tests are very slow
When you are using this @wdio/ocr-service
you are not using it to speed up your tests, you use it because you have a hard time locating elements in your web/mobile app, and you want an easier way to locate them. And we all hopefully know that when you want something, you lose something else. But...., there is a way to make the @wdio/ocr-service
execute faster than normal. More information about that can be found here.
Can I use the commands from this service with the default WebdriverIO commands/selectors?
Yes, you can combine the commands to make your script even more powerful! The advice is to use the default WebdriverIO commands/selectors as much as possible and only use this service when you can't find a unique selector, or your selector will become too brittle.
My text isn't found, how is that possible?
First, it's important to understand how the OCR process in this module works, so please read this page. If you still can't find your text, you might try the following things.