sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #17332
Re: [Question #226024]: When running exists activity the log return without indication for failure or success
Question #226024 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/226024
RaiMan proposed the following answer:
this is what exists() is intended for: being completely silent, so it
can be used in decisions, how to go on on your workflow.
typical usage:
if exists(some_image):
click(getLastMatch())
else:
print "sorry, we have to stop here"
exit()
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.