Thank you for the reply! To elaborate on our situation:
- Each test step is run in a try/catch so that we gracefully capture the error and move on to the next step. Not every function. It's more like a shell around executed functions.
- We have some functions that gracefully try to stop browsers and terminate the process if browser.close does not work. We do this in a loop, so those nasty multiple iexplore background processes are also killed, since they often screw up target frame identification. I notice we haven't set the TabProcGrowth registry yet, so maybe that helps.
What I really try to do is indeed simply catch the particular 'browser has crashed' error. But the event handler seems a little complex. There is no event.browsercrash event handler of some sort it seems and onerrorlog seems to do stuff 'before the error is posted to the log' and not suppress the error.
What would be the jscript code to prevent a specific error from appearing?