How do I catch switchApp failure?
Asked by
Osiris2258
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?
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- SikuliX Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
This question was reopened
- by Osiris2258
Can you help with this problem?
Provide an answer of your own, or ask Osiris2258 for more information if necessary.
To post a message you must log in.