← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #237595]: [1.0.1] help using App.focus() from inside a class

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
App.focus() always brings the windows of the app to front, but depending
on the window structure (browsers are critical in this section), the
window you expect might not have the input focus.

In some cases you simply have to wait a little before firing actions
after focus.

If nothing else helps, you have to click the window in an inactive are,
to give it the input focus (App: focusedWindow() will return the
frontmost window of all active apps)

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