.find method does not work

Asked by Sebastian

study = find(Pattern("FT00C-1.png").exact());
checkbox = study.find("1348083571388.png");
click(checkbox);

the checkbox it actually clicks is nowhere near 'study', it is outside of it.

What is the problem?

Thank you!

Question information

Language:
English Edit question
Status:
Answered
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
RaiMan (raimund-hocke) said :
#1

--1. do not use exact() (it is buggy) .....
better Pattern(). similar(value) with value <= 0.99

but this is not your problem.

--2. debug visually this way:

study = find(Pattern("FT00C-1.png").similar(0.99)
study.highlight(3)
checkbox = study.find("1348083571388.png")
click(checkbox)

and run it with the slow motion.

Can you help with this problem?

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

To post a message you must log in.