Register a listener that fires at most once for AX events on a specific element
An HSAXElement to watch - see on for the application-vs-descendant bubbling behavior
on
An event name, or an array of event names, to watch for with the same listener
Called once (per registered notification name), then automatically removed
A failure to start the watcher throws an Error with a code, as for on.
Error
code
Throws an Error on failure; wrap calls in try/catch to handle it.
Register a listener that fires at most once for AX events on a specific element