Reputation: 1
When I open Firefox manually, it is opening correctly and functioning as expected but when I try to launch the same Firefox using Selenium WebDriver, code:
WebDriver driver = new FirefoxDriver();
Firefox is launching and after few moments am getting error "Firefox has stopped working" with the 2 options:
Please try to resolve this issue as my many of the applications runs on Firefox.
Upvotes: 0
Views: 1676
Reputation: 2227
Picture from pom.xml for WebDriverManager
Upvotes: 0
Reputation: 131
Update to FF 47.0.1, they fixed the bug that was causing the crash. See https://www.mozilla.org/firefox/47.0/releasenotes/
Upvotes: 1
Reputation: 371
Downgrade your firefox version to FF 46.0 as the FF 47.0 has no support for webdriver. once you downgrade the Firefox go and disable the auto upgrade option by following the below mentioned steps:
Open firefox: Press F10 > Tools > options
Go to the Advanced tab.
Navigate to the Update tab.
Uncheck the option 'Use a background service to install update'
Uncheck 'Automatically install updates (recommended: improved security)' by clicking the other button in list 'Never check for updates (not recommended: security risk)' and click ok
Upvotes: 0