Amith
Amith

Reputation: 1

Firefox is opening but terminating immediately when we launch using Selenium WebDriver

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:

  1. Check online for a solution and close the program
  2. Close the program

Please try to resolve this issue as my many of the applications runs on Firefox.

Upvotes: 0

Views: 1676

Answers (3)

Bayram Binbir
Bayram Binbir

Reputation: 2227

Picture from pom.xml for WebDriverManager

Upvotes: 0

Steven
Steven

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

Pankaj Dubey
Pankaj Dubey

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:

  1. Open firefox: Press F10 > Tools > options

  2. Go to the Advanced tab.

  3. Navigate to the Update tab.

  4. Uncheck the option 'Use a background service to install update'

  5. 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

Related Questions