sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #12495
Re: [Question #205413]: trying to trap errors in sikili script not quite working
Question #205413 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/205413
Status: Open => Needs information
RaiMan requested more information:
if not exists("1344004317402.png"):
print"[error]: Can't Start Application"
exit(1)
# should exit here with the error message
# if image 1344004317402 is not found
# click("1344004317402.png") # delete - double with next statement
# this clicks image 1344004317402, if it was found
click(getLastMatch())
## need to wait for splash screen to disappear, if it comes up
# this will fail if image UserName-3 does not appear within 40 secs
wait("UserName-3.png", 40)
-------- So, exactly, what is your problem?
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.