sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #39754
Re: [Question #332104]: App finds and focus on the wrong window
Question #332104 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/332104
Status: Open => Answered
RaiMan proposed the following answer:
You might call it a bug, but actually it is due to the (weak) implementation of the feature:
Looking for a matching process/application takes precedence over finding a matching window without having the option to control this behavior.
So you either take care, that the window has a distinctive name or you
try:
App("the app having the window titled Output").focus()
window = App.focusedWindow()
this should work, if the window in question becomes the frontmost
window, if the application comes to front.
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.