← Back to team overview

sikuli-driver team mailing list archive

[Bug 1008113] Re: bug on focus() or switchApp?

 

Hi thanks. I did put a condition to handle windows machines since that
is what I've read from the FAQs, but instead of seeing there the apps
switching to the front it is not doing so unlike the mac.

try this:
Manager is the task manager. I launched both task manager and firefox, where firefox may put the task manager behind it bec of the focus.
a = App('Manager')
b = app('firefox')

b.focus()
wait(2)
a.focus()
wait(2)
b.focus()
wait(2)
a.focus()
wait(2)

You will see that either task manager or firefox will not be put in
front and will always be behind the other app

-- 
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to Sikuli.
https://bugs.launchpad.net/bugs/1008113

Title:
  bug on focus() or switchApp?

Status in Sikuli:
  Invalid

Bug description:
  Is there some bug with focus() or switchApp() handled on windows? I
  noticed that if I use the same method on mac it works find and puts
  the application in the front, but when using it on windows it does
  not.

  what I did was put the application (ff) behind a different application (ie) and want to get a focus on it so it becomes the application in front.  
  code: 
  switchApp('firefox')

  or

  ff = App('firefox')
  ff.focus()

  - another q, is that if the application is minimized (win or mac),
  would focus() also work and open the application and put it in
  focus()?

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1008113/+subscriptions


References