sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #04436
Re: [Question #167279]: Firefox: App.window() returns a region (0, 0), 0x0
Question #167279 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/167279
RaiMan posted a new comment:
ok, understood.
But that has nothing to do with the App class as such (it only
encapsulates the API on a higher abstraction level).
Since I usually do not Sikuli in Java and these posts here should be of
value for all Sikuli users, I use the API level, that is available at
least similar in Python and Java. Win32Util/switchApp()/getWindow() is
the "same" feature on a lower API level only available on Windows and
"only" for Java users (at least not documented for the Jython level).
I guess, that for most apps it is still true, that the window() (window
0) is the frontmost visible window after having used switchApp or
App.focus().
But especially for the browsers (Firefox, Chrome, IE9, Safari, ...) it
seems to be a strategy to have more than one window available, but
invisible.
So you might post a request bug: App.window() should return only visible
windows.
BTW: You should switch to using the App class, which is the official
public API. Win32Util is for internal use only and might be subject to
change without notice.
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.