Skip to content
This repository has been archived by the owner on Mar 14, 2018. It is now read-only.

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

Open
giurlanda opened this issue Aug 3, 2017 · 1 comment
Labels

Comments

@giurlanda
Copy link

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:

  • getWindow() returns a empty line
  • hasWindow() returns False instead of True
  • window() returns None
  • isRunning() retunrs False instead of True

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

Thanks

@RaiMan
Copy link
Owner

RaiMan commented Sep 14, 2017

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

So this is simply a bug ;-)

@RaiMan RaiMan changed the title Unexpected values for window(), getWindow(), hasWindow(), isRunning() Not yet implemented on Linux: window(), getWindow(), hasWindow(), isRunning() Sep 14, 2017
@RaiMan RaiMan added the bug label Sep 14, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants