hasWindow and window functions do not work correctly

Asked by Francesco on 2017-08-02

I am using sikulix 1.1.1 on ubuntu 16.04 and I am seeing some strange behaviours.
This is the code sample:

myapp = App('firefox')
myapp.open()
myapp.pause(5)

print myapp.isRunning()
print myapp.hasWindow()
print myapp.getWindow()
print myapp.window()

----- Output -----
[log] App.open [32352:firefox]

True
False

None
----------------------

The script opens correctly a new window with firefox, but both hasWindow() and window() do not give the correct output. Moreover, getWindow() returns an empty line.

Does someone know the reason of this behavior?
Could it depend on the title of the window?

Thanks

Question information

Language:
English Edit question
Status:
Expired
For:
Sikuli Edit question
Assignee:
No assignee Edit question
Last query:
2017-08-02
Last reply:
2017-08-17
Launchpad Janitor (janitor) said : #1

This question was expired because it remained in the 'Open' state without activity for the last 15 days.