Added a confirmation dialog in tests that are likely to crash the browser.