Open AndreiTsialenchanka opened 2 years ago
Also I'm getting: "2022-11-18 21:40:09 ERROR Error: An error happened when parsing the getSystemOcrData, see: Error: An error happened when parsing the getSystemOcrData, see: Error: Attribute without value [0-0] Line: 110 [0-0] Column: 14 [0-0] Char: v" error in some cases
Sorry for the late response, do you have a sample I can run?
@wswebcreation, sure
Error:
Error: Error: An error happened when parsing the getSystemOcrData, see: Error: An error happened when parsing the getSystemOcrData, see: Error: Invalid character in entity name Line: 224 Column: 2 Char:
Screenshot saved by OCR:
Screenshot of the screen in simulator:
This one might be related as well
Error: Error: An error happened when parsing the getSystemOcrData, see: Error: An error happened when parsing the getSystemOcrData, see: Error: Non-whitespace before first tag.
Line: 0
Column: 1
Char: 1
Environment (please complete the following information):
Config of WebdriverIO + wdio-ocr-service An example of how you configured the wdio-ocr-service : 'ocr', { // The OCR options ocrImagesPath: 'ocr-images/', ocrLanguage: 'eng' },
Describe the bug On some areas of the screen following error is thrown:
Error: An error happened when parsing the getSystemOcrData, see: Error: An error happened when parsing the getSystemOcrData, see: Error: Invalid character in entity name Line: 29 Column: 7 Char:
To Reproduce Steps to reproduce the behaviour: Run
await driver.ocrGetText()
Expected behavior I expect service to ignore unrecognised characters while parsing the values
Screenshot with cropped out area which causes this error: