← Back to team overview

sikuli-driver team mailing list archive

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

 

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

I need to make sure it switches to an application window before proceeding. The switchApp method doesn't seem to return a python error, so I can't figure out how to try-catch. If it fails to switch to the app I need it to print an error code (Which I will pull back into normal python from the windows command line) and then abort. How do I catch the error?

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