← Back to team overview

sikuli-driver team mailing list archive

[Question #654902]: hasWindow and window functions do not work correctly

 

New question #654902 on Sikuli:
https://answers.launchpad.net/sikuli/+question/654902

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

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.