[1.1.0] App.focus Not working --- fixed 2015-05-09+

Bug #1453093 reported by Steen
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
SikuliX
Fix Committed
Critical
RaiMan

Bug Description

Run from IDE or terminal, App.focus('Some App') does not work.
Tried on Virtual machine and Pysical machine, no difference.
nightly build 2015-05-08_01;00

See video
http://screencast.com/t/KI0WlEd5

Revision history for this message
RaiMan (raimund-hocke) wrote :

what version of OS X?

try this:

take care, that both apps are behind some other app (e.g. a Finder window):

Debug.on(3)
safari = App("Safari")
icon = App("Icon.app")
safari.focus()
icon.focus()

and paste the output + info wether the apps came to forground

Revision history for this message
RaiMan (raimund-hocke) wrote :

Just tested on 10.7 and 10.10:
App.focus() does not work anymore.

Use open() instead as a workaround.

Revision history for this message
RaiMan (raimund-hocke) wrote :

ok, fixed. I will trigger a new nightly upload.

Changed in sikuli:
status: New → Fix Committed
importance: Undecided → Critical
assignee: nobody → RaiMan (raimund-hocke)
milestone: none → 1.1.0
summary: - App.focus Not working in 1.1.0
+ [1.1.0] App.focus Not working --- fixed 2015-05-09+
Revision history for this message
Steen (steenc) wrote :

still not working in Nightlybuild 2015_05_07_01:00nightly

debug says:
[debug] App.focus Safari [-1:Safari ()] #0
[debug] App.focus Icon.app [-1:Icon.app ()] #0
[debug] Sikulix: cleanUp: 0

and that looks like it works, with naming the app.
but my example does still not work.

Revision history for this message
RaiMan (raimund-hocke) wrote :

still not working in Nightlybuild 2015_05_07_01:00nightly

yes

as mentioned in the title: --- fixed 2015-05-09+

Revision history for this message
RaiMan (raimund-hocke) wrote :

uups, focus() indeed does not seem to work.

use open() instead.

- opens if not yet running
- focuses if running

... still some work to do here ;-)

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.