You should only see one unload alert appear. <script>if (window.testRunner) testRunner.notifyDone(); </script>