sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #36345
Re: [Question #280774]: Observe doesn't work
Question #280774 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/280774
Status: Open => Answered
RaiMan proposed the following answer:
using observe here is simply overkill ;-)
success = False
if r1.exists("1.png", 10): # wait 10 seconds max for 1.png
r1.doubleClick() # double click if found: last match in r1
if r2.exists(Pattern("2.png").similar(0.95), 10): # then wait 10 seconds max for 2.png
success = True # if found: it is success
if success:
popup("success") # or do something else
else:
exit()
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.