How to prevent firefox showing the safe mode dialog after the crash?

It blocks the automatic selenium tests.
Hold down the ⌥ Option key. Click (or double-click) Firefox. Release the ⌥ Option key when Firefox opens. Click Start in Safe Mode when prompted.
I have no idea how you got this and what your testing flow is. So I can't reproduce and test the solution. But Firefox Safe Mode can be disabled by setting the key toolkit.startup.max_resumed_crashes in about:config to -1.
Here's how to start Firefox with that preference set in C# binding:
FirefoxProfile profile = new FirefoxProfile();
profile.SetPreference("toolkit.startup.max_resumed_crashes", "-1");
IWebDriver driver = new FirefoxDriver(profile);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With