← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #246912]: if exists IMG click IMG gives FindFailed error

 

Question #246912 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/246912

shatterah gave more information on the question:
Based on the following post
(https://answers.launchpad.net/sikuli/+faq/1501) I have changed my code
to the following:

    if legregion.exists(Pattern("1397186630070.png").similar(0.47), 0):
        click(getLastMatch())
        wait (.2)

However, I am noticing that when there is a match the
"click(getLastMatch())" does not click on the Pattern but the location
of the last "wait (IMG, forever)" location?  Still trying to figure out
why that is the case.

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.