RaiMan / SikuliX-2014

SikuliX version 1.1.2 (until February 2018)
http://sikulix.com
805 stars 235 forks source link

Not yet implemented on Linux: window(), getWindow(), hasWindow(), isRunning() #276

Open giurlanda opened 6 years ago

giurlanda commented 6 years ago

I am downloaded sikulix 1.1.1 on ubuntu 16.04, openJDK8 (I traied also Oracle java 8) and with some example scripts it seems work. Strange things appened when I used the methods window(), getWindow(), hasWindow(), isRunning... of the App class. I tried the below code:

` myapp = App.open('gedit') wait(5)

print myapp.getName() print myapp.getPID() print myapp.getWindow() print myapp.hasWindow() print myapp.window() print myapp.isRunning() The script opens the window with gedit correctly but prints the below output: [debug] App.immediate: gedit [debug] App.create: [-1:gedit] [debug] App.open [12630:gedit] gedit 12630

False None False ` Some methods does not return what I expect:

Could someone give me an explaination about? Am I using the api in a wrong way?

Thanks

RaiMan commented 6 years ago

Explanation: all these features are not yet implemented for Linux.

So this is simply a bug ;-)