sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #17213
[Bug 1161878] Re: not exists() unfocuses the current window
** Changed in: sikuli
Status: New => Opinion
** Changed in: sikuli
Assignee: (unassigned) => RaiMan (raimund-hocke)
--
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to Sikuli.
https://bugs.launchpad.net/bugs/1161878
Title:
not exists() unfocuses the current window
Status in Sikuli:
Opinion
Bug description:
sikuli1.0rc3
win7 32bit
Below is the code I'm using to open the about window in my program.
The problem I'm facing is that the window does not get closed. After
some testing I found out the problem is the if not exists() line. If
I remove that if statement the code works. The about window has a
close and ok button that I can always click with the mouse but that
doesn't fix this bug.
def showAbout(self, waittime = 5):
"""Shows the about window
:param arg1: how long to wait before closing the window in seconds
:type arg1: interger
:return: window opened successfully
:rtype: bool"""
type('h', KeyModifier.ALT)
type('a')
if not exists("aboutwindow.png", 5):
return False
wait(waittime)
type(Key.ENTER)
return True
To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1161878/+subscriptions
References