← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #255170]: How do I catch switchApp failure?

 

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

    Status: Answered => Open

Osiris2258 is still having a problem:
If the application fails, the following will show up in the IDE messages
but will not stop execution.

IDE messages:

[log] App.focus APPLICATION_NAME
[error] App.focus failed: APPLICATION _NAME not found

I need to have it stop execution and pass an error back to python (it is
being called using subprocess.Popen to a premade script). What I don't
see is a catchable exception, unlike if it fails to find a click target
which gives a catchable 'FindFailed' exception. The reason this is
important is that the software I have to work with is prone to crashing
or popups, and in either case this will break sikuli, so I need to be
able to handle this.

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.