I'm working on Selenium based tests for Spotfire reports and one of the checks I perform is that no errors are shown in the notification area. Currently, I achieve this by checking the content of the Spotfire DOM, then clicking on buttons to show the notifications dialog and then extracting the text - all very ugly. It would help to have a supported JavaScript API to check for notifications.