← 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: Open => Answered

RaiMan proposed the following answer:
myApp = App.focus(...) # returns None in case of failing, App object
otherwise

if not myApp:
    print "could not focus"

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