Preview matched, but find failed

Asked by Vincent

Hi,

I am running a script containing the following:

find(Pattern("imaghe1.png").exact()).right().find(Pattern("image2.png").exact())

As can be seen, I set the matching factor to maximum, but still get find failed errors on the second image. I run the same script in a similar test with a slightly different first image with success, but not in this instance. Anything else I can do to debug?

Thank you very much!

Regards,

Vincent

Question information

Language:
English Edit question
Status:
Solved
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Solved by:
masuo
Solved:
Last query:
Last reply:
Revision history for this message
Best masuo (masuo-ohara) said :
#1

Please check whether there is an image2 in a rectangle that was the right side of the highlights.
If image2 than a small height of image1, I think SikuliX does not find the image2.

[exmple]
r = find(Pattern("imaghe1.png").exact())
r.right().highlight(5)

Revision history for this message
Vincent (6-vincent) said :
#2

Thanks masuo, that solved my question.