← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #266528]: app.focus() not working after window title change (Windows 8.1)?

 

Question #266528 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/266528

Geoff Bache posted a new comment:
I've just downloaded and installed last night's build (0512) and
unfortunately the regression issues here seem to be worse/unchanged
since 0507.

Neither a subsequent app.focus() nor a subsequent App.focus("part of
current title") work in either 0507 or 0512, if I initially create the
app in the third way by using part of the window title. As mentioned
before, in both of these I have to use the name as given by tasklist,
which can't be inferred from just looking at the window title, instead
of the login dialog title which 0420 needed.

I can try to avoid the need for this by starting the app from Sikuli
instead of via my script, as you describe, this will take a bit longer
to test.

Another issue seems to have got worse, which is startup speed. I had a
feeling 0507 took longer to get going than 0420, and some timing tests
confirm this, but 0512 is *much* worse. I noticed that both 0507 and
0512 now write the message "[debug] KeyPress: WaitForIdle: false -
Delay: 10", which 0420 does not. This looks like it adds a 10 second
delay (the first action is typing the username into the login dialog).
But strangely, running the same test repeatedly gives shorter delays
than this in 0507, and longer in 0512.

0420: 15 seconds
0507: 19 seconds
0512: 38 seconds

All the extra time used is at the start. The only difference is the
sikulixapi.jar used, and the text to find the app in the first place
(which has to be different)

Incidentally, I couldn't find how to configure this 10 second delay, if
such it is, is there a parameter?

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.