sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #17338
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
Status: Open => Answered
RaiMan proposed the following answer:
generally you have to produce log messages with find operations
yourself.
if exists(some_image):
click(getLastMatch())
else:
print "sorry, we have to stop here"
exit(1)
the above print would produce a "log message" and exit(1) would report a
1 back to command line, which can be checked there.
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.