← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #204056]: Problem With For loop

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
Since I do not have any idea about the visual aspects of your workflow,
I cannot tell you, why the image is not found in the second turn.

So you have to do some debugging around the problematic line with some
prints and region.highlight(t).

Might be you have to wait a little bit longer for the image:

if exists(image, 5): click(getLastMatch())
else: print "image not found"; exit(1)

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