← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #647305]: Error options in Sikuli?

 

Question #647305 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/647305

    Status: Answered => Solved

arminius confirmed that the question is solved:
For newbs who came after me, I found this
"http://doc.sikuli.org/region.html#Region.setFindFailedResponse";

"setFindFailedResponse().
Parameters:	
ABORT – all subsequent find failed operations (explicit or implicit) will raise exception FindFailed (which is the default when a script is started).
SKIP – all subsequent find operations will not raise exception FindFailed. Instead, explicit find operations such as Region.find() will return None. Implicit find operations (action functions) such as Region.click() will do nothing and return 0.
PROMPT – all subsequent find operations will not raise exception FindFailed. Instead you will be prompted for the way to handle the situation (see using PROMPT). Only the current find operation is affected by your response to the prompt.
RETRY – all subsequent find operations will not raise exception FindFailed. Instead, Sikuli will try to find the target until it gets visible. This is equivalent to using wait( ... , FOREVER) instead of find() or using setAutoWaitTimeout(FOREVER)."

Skip will probably do what I need, I'll have to test it later tonight.

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