sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #02490
Re: [Question #155646]: Get time for image to disappear
Question #155646 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/155646
Status: Open => Answered
RaiMan proposed the following answer:
this is the easiest way:
start = time.time()
max = 100.0 # max time in seconds
while exists(image, 0): # one search per exists()
if time.time() - start > max: break
duration = time.time() - start
if duration > max:
popup("did not disappear")
else:
popup("seconds to disappear: "+str(duration))
More complex solutions are possible with observe().
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.