sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #02392
[Bug 747006] Re: [request] Ubuntu: app.window() returns None - not supported on Linux yet
Here's a patch
Note that some linux programs are started by batch files, like in ubuntu firefox is a batch file that starts firefox-bin
So after doing App.open() you'll have to start a new App('firefox-bin')
to use that window.
** Patch added: "linuxapp.diff"
https://bugs.launchpad.net/sikuli/+bug/747006/+attachment/2085548/+files/linuxapp.diff
--
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to Sikuli.
https://bugs.launchpad.net/bugs/747006
Title:
[request] Ubuntu: app.window() returns None - not supported on Linux
yet
Status in Sikuli:
Confirmed
Bug description:
Ubuntu 10.10 32Bit and 64Bit / Sikuli X-1.0rc2 (32Bit and 64Bit)
only App.open(), App.close() and App.focus() work
*****************************************
app.window()/App.focusedWindow() can return the region of the
application's window on Mac and Window. However, it returns NONE on
Ubuntu.
For instance, the following code results in error on Ubuntu, but works well on Mac and Windows.
ff = App("firefox")
wait(3)
print ff.window().getY()
References