sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #37217
Re: [Question #288553]: Taking a printscreen if an error occurs
Question #288553 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/288553
Status: Open => Answered
masuo proposed the following answer:
[example:]
def func1():
find("image1.png")
def func2():
find("image2.png")
def func3():
a = 1/0
try:
func1()
func2()
func3()
except ZeroDivisionError:
print "ZeroDivisionError"
except FindFailed:
type(Key.PRINTSCREEN)
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.