I have a project that sometimes uses multiple FF windows and sometimes multiple FF drivers. During init, I create a custom FirefoxProfile (or load a default from Selenium without any changes), add it to DesiredCapabilities, add capabilities to FirefoxOptions and start FF with FirefoxOptions.
Test case executes fine, until I need to close the window:
driver.getWindowHandles().forEach(name -> driver.switchTo().window(name).close());
or
driver.quit();
After either one of these pass, FF shuts down and "Firefox has crashed" popup appears. No exception is shown in logs.
If I remove FirefoxProfile, no crash popup appears, but FirefoxProfile is needed to enable Flash support and do more.
Using:
Some of the most common include the following; The Firefox browser could be outdated and may need an update. It is also possible that the version of Windows 10 you are running is not up to dare. Mismatched cache and other conflicts of settings can cause Firefox to crash.
The Mozilla Crash Reporter dialog box appears when Firefox closes unexpectedly and lets you submit a crash report to developers, to make future Firefox versions crash less often. This article describes how it works and shows you how to access your crash reports.
Firefox is still very much alive and well as Mozilla has no plans to stop development of their web browsers for desktop (Windows, macOS, Linux) and mobile versions for iOS and Android. Firefox has been their main product.
The driver is failing to properly terminate the sub processes created by Firefox like flash.
https://github.com/mozilla/geckodriver/issues/285
To avoid the dialogue box, you can set the environemnt variable XRE_NO_WINDOWS_CRASH_DIALOG
to 1.
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