sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #43517
Re: [Question #655511]: Waiting to do 1 of 2 actions
Question #655511 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/655511
Status: Open => Answered
Manfred Hampl proposed the following answer:
Your new code will loop forever in lines 13-15
You probably need a "break" inside this loop to continue processing below that part.
Remark:
line 11 seems redundant.
The block in lines 8-10 will loop as long as that blue/red block is visible on the screen and ends when it is no more there.
I do not see the need to test whether that block now is not there any more (unless it is supposed to immediately re-appear).
In my opinion a simple "break" with a first-level indent would have been enough.
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.