OCR help : Read some numbers and type it

Asked by nick oh on 2018-07-29

I need to read a 4 number text field, click the box below, and paste the read text.

I tried :
    code = text()
    //click the box
    type (code)

and it says that "type(): 1st arg can't be coerced to String"
What am I doing wrong?

Question information

Language:
English Edit question
Status:
Answered
For:
Sikuli Edit question
Assignee:
No assignee Edit question
Last query:
2018-07-29
Last reply:
2018-07-30
RaiMan (raimund-hocke) said : #1

use paste() instead

TestMechanic (ndinev) said : #2

First try that your ocr works fine. Print code variable before using it. Consider using copy-paste instead of ocr if possible.

Can you help with this problem?

Provide an answer of your own, or ask nick oh for more information if necessary.

To post a message you must log in.