← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #667091]: Mac: Retina: using SikuliX with Java programming

 

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

RaiMan proposed the following answer:
In a SikuliX workflow having a FindFailed situation either means, that
you have done something wrong in preparing your workflow and/or images
or that something has happened, that you have foreseen and now be able
to recover somehow from the situation.

In the first case, when catching the exception, you might implement some logging and decide how to proceed.
The latter case is obvious.

So, yes it is your decision ;-)

alternatively:

Match m = screen.exists("aaa",2);
if (m == null) {
   // not found - do something
} else {
   m.click() // just put a debug breakpoint here
}

this will never crash.

So it might be, that you have to learn more about exception handling.

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