"requires Accessibility API" exception pops up a blocking dialog with -s command line option

Bug #785813 reported by Michael K
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
SikuliX
In Progress
Medium
RaiMan

Bug Description

MacOS 10.6
Sikuli IDE 1.0rc2

The error:

[error] getFocusedWindow requires Accessibility API to be enabled!

Even when running sikuli-ide.sh -s -r <my-script>, this pops up an interactive dialog offering to open system preferences to enable Accessibility. The function getFocusedWindow (or App.window()) returns None after clicking No in the dialog.

It should just return None when -s command line option is specified. The script may be recorded on a machine with Accessibility enabled and played back with Accessibility disabled, under an automated test runner that should under no circumstances block execution indefinitely -- that's the whole purpose of the "-s" command line option.

If it's desirable to have the option to retain the interactive behavior in some situations even with -s, perhaps a Settings option could be helpful, but by default it should just return None and let the calling code deal with it, possibly failing the test, which is a perfectly valid outcome with -s.

Tags: scriptrun
RaiMan (raimund-hocke)
Changed in sikuli:
status: New → In Progress
importance: Undecided → Wishlist
assignee: nobody → RaiMan (raimund-hocke)
importance: Wishlist → Medium
tags: added: scriptrun
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.