sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #47825
Re: [Question #671096]: unit testing: how to handle exceptions and continue in case of failures
Question #671096 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/671096
Status: Answered => Solved
Sonali confirmed that the question is solved:
Hi Raiman,
Comment #1
use
if exists(img):
click()
else:
# do something else
... and follow the conventions and features of Python unit testing.
That means I always have to use it for each image, there are series of
image. Any other way like
try
click(image1)
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.