sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #21874
Re: [Question #237655]: Problem regarding wait(pattern)
Question #237655 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/237655
Status: Open => Answered
RaiMan proposed the following answer:
You should use a construct using exists() instead of wait(), soyou have
more options:
while True: # means forever
if (exists(button,0)):
wait(0.5) # you decide how long
if (exists(button, 0):
break # button is stable
wait(1) # and check again
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.