sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #12011
[Question #203958]: Sikuli is stuck finding one image that no longer exists
New question #203958 on Sikuli:
https://answers.launchpad.net/sikuli/+question/203958
Hello, I've bump into a problem trying to make some scripts...
I have my problem in the first while loop, it works well but when the image disappears, the loop still finds it, getting stuck there.
I'm aware that waitVanish is what I need, but that simply doesn't work, after around 20 seconds the waitVanish ends although the image is still present, no matter how many seconds I pass to the second variable... :(
Maybe the problem is about the flow of the program, because it has been a long time since I touched code... I don't know.
Here is the code, I've put some popups to see the flow:
def estoyListo():
if exists(img_readyNow):
popup("img_readyNow")
click(img_readyNow)
while exists(img_dontPanic):
popup("img_dontPanic")
pass
if exists(img_repairDamage):
popup("img_repairDamage")
click(img_repairDamage)
while exists(img_close):
popup("img_close")
click(img_close)
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.