← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #300736]: FindFailed Error when image is not on screen

 

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

RaiMan proposed the following answer:
to handle this error (FindFailed) see:
http://sikulix-2014.readthedocs.io/en/latest/region.html#exception-findfailed

another option always is, to use exists:

        if not exists("1469039051065.png"):
            if exists"1469038914742.png"): click()
            else: pass #do something else

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.