← Back to team overview

sikuli-driver team mailing list archive

[Question #208456]: Problem with InternetExplorer 9 app.focus

 

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

I'm trying to keep one instance of the browser open. With firefox, this works perfectly,  but Internet Explorer 9 just opens new windows, and I can't check how many windows are open.

[log] App.focus InternetExplorer(0) #0
[error] App.focus failed: InternetExplorer not found

       app = App(name)
        if not app.window(): # no window found - browser is not open / Does not work with IE
            print "## Opening new browser window ##" 
            self.app.open(self.browserExecutable) 
            wait(3) 

            # maximize the screen
            type(Key.UP, KEY_WIN) 
        app.focus() # this does not work with IE

So both app.focus() and app.window() throw errors.  Is this a known issue?

I'm using windows 7, 64 bit professional.

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