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

    Status: Open => Needs information

RaiMan requested more information:
--1. use exists() instead of find() ...
... when having this in a condition, because exists() comes back with None 
(False) instead of crashing with FindFailed.

--2. image as parameter ...
... is correctly used in your example 

--3. your workflow logic ...
... looks strange - not really clear what your intention is

Since it crashes with 3.png, saying it is not on the screen, it must be at the
elif find ("3.png") and needSize != "3.png":

But looking at your logic (which is recursive - by intention?), this should 
never be executed, since it either should endlessly recur at 
 if find("1.png") and needSize != "1.png":
        click("1.png")
        changeIconSizeTo(needSize)

or crash with FindFailed on image 1.png.

So pleas paste your real code and the error trace completely.
The above example should not produce this error.

-- 
You received this question notification because you are a member of
Sikuli Drivers, which 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