This code used to work well in Automation test with Instruments 4.6:

```
UIATarget.onAlert = function onAlert(alert) {
    var title = alert.name();
    UIALogger.logWarning("Alert with title ’" + title + "’ encountered!");

    return false; // use default handler
}

```

I've upgraded to XCode 5.0 and this code doesn't work anymore. There is no reaction to alerts -- onAlert is never called.

Am I missing something or this is really broken by Apple?