← Back to team overview

sikuli-driver team mailing list archive

[Question #147387]: Problem using while iteration

 

New question #147387 on Sikuli:
https://answers.launchpad.net/sikuli/+question/147387

I did some explamples using sikuli, but when i try to make this one:

while not find(img1.png):
    sleep(1)
    click(img2.png)

click(img1.png)

i can't make it work, if the image is not found i get an error in while line saying that the image is not found, but afaik the script should be like a while True (if the image is not found).
What i'm doing wrong? :S

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