← Back to team overview

sikuli-driver team mailing list archive

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

masuo proposed the following answer:
If you want script to continue only if when FindFailed exception occurred, you can use setFindFailedResponse(SKIP).
https://sikulix-2014.readthedocs.io/en/latest/region.html?highlight=setFindFailedResponse#Region.setFindFailedResponse

[example]
setFindFailedResponse(SKIP)
click("Image1")
setFindFailedResponse(ABORT)

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.