Basically, Firefox would sometimes throw the dialog and my test framework (naturally) wouldn’t be able to dismiss it without my help. This meant the Firefox instance stayed open, so if I tried running the suite again, I’d get an exception:
Annoying. To me, it seemed the simplest solution was to merely disable Safe Mode entirely, as I would never need it during a test. Rummaging around in Stack Overflow and the Mozilla bugtracker, I found this ticket that proposed I could either:
- set an environment variable,
- pass a config setting,
maxResumedCrashes = -1to about:flags or a user profile
According to the webdriver documentation, you can set a custom user profile flag fairly easily with
Disabling Safe Mode was simple:
If you’ve got the same problem, you might want to give it a try.