Question #266772 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/266772
Status: Open => Answered
RaiMan proposed the following answer:
what you want is more something for an until (but this is not available
in Python).
until exists image1 or exists image2:
wait(someTime)
or in words with a while:
while neither image1 nor image2 are visible just wait a bit and look again
with a while and condition:
while not exists(image1, 0) and not exists(image2, 0):
wait(1)
as a simulated until:
while True:
if exists(image1, 0) or exists(image2, 0):
# do something
break
wait(1)
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.
_______________________________________________
Mailing list: https://launchpad.net/~sikuli-driver
Post to : [email protected]
Unsubscribe : https://launchpad.net/~sikuli-driver
More help : https://help.launchpad.net/ListHelp