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

    Status: Open => Answered

masuo proposed the following answer:
If searching image in the region is not successful, the resut is  different 
between find and exists.
find raise FindFailed exception. exists does not raise FindFailed exception. 
http://sikulix-2014.readthedocs.org/en/latest/region.html?highlight=findfailed

[exmple:]
if exists("image1.png",0):
    click()
elif( exists("image2.png",0):
    click()
elif( exists("image3.png",0):
    click()
elif( exists("image4.png",0):
    click()
elif( exists("image5.png",0):
    click()

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

_______________________________________________
Mailing list: https://launchpad.net/~sikuli-driver
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp

Reply via email to