Hi… I have installed eclipse 1st time, but there is an issue related to gechodriver error given below please send me solution-

Hi… I have installed eclipse 1st time, but there is an issue related to gechodriver error given below please send me solution-

 

1494915654414 geckodriver INFO Listening on 127.0.0.1:27431
1494915655115 geckodriver::marionette INFO Starting browser \\?\C:\Program Files (x86)\Mozilla Firefox\firefox.exe with args [“-marionette”]
1494915655676 addons.manager ERROR startup failed: [Exception… “Component returned failure code: 0x80070057 (NS_ERROR_ILLEGAL_VALUE) [nsIFile.create]” nsresult: “0x80JavaScr0i7p0t0 5e7r r(oNrS:_ ErReRsOoRu_rIcLeL:E/G/AgLre_/VmAoLdUules/AEd)d”o n Mlaoncaatgieorn.:j s”mJ,S lfirnaem e1 6:5:7 :r eNsoSu_rEcReROR_NOT_INITIALIZED: AddonManag:er/ /igsr en/omto diunlietsi/aFliilzeeUdt
i
ls.jsm :: FileUtils_getDir :: line 70” data: no] Stack trace: FileUtils_getDir()@resource://gre/modules/FileUtils.jsm:70 < FileUtils_getFile()@resource://gre/modules/FileUtils.jsm:42 < validateBlocklist()@resource://gre/modules/AddonManager.jsm:671 < startup()@resource://gre/modules/AddonManager.jsm:834 < startup()@resource://gre/modules/AddonManager.jsm:3129 < observe()@resource://gre/components/addonManager.js:65
[GFX1]: Potential driver version mismatch ignored due to missing DLLs 0.0.0.0 and 0.0.0.0
1494915658947 Marionette INFO Listening on port 2599
JavaScript error: resource://gre/modules/AddonManager.jsm, line 2570: NS_ERROR_NOT_INITIALIZED: AddonManager is not initialized
May 16, 2017 11:50:59 AM org.openqa.selenium.remote.ProtocolHandshake createSession
INFO: Detected dialect: W3C
1494915664810 Marionette INFO New connections will no longer be accepted

Add Comment
  • 2 Answer(s)

    System.setProperty(“webdriver.gecko.driver”, “Libs/geckodriver.exe”);
    File pathBinary = new File(“C:\\Program Files\\Mozilla Firefox\\firefox.exe”);
    FirefoxBinary firefoxBinary = new FirefoxBinary(pathBinary);
    FirefoxProfile firefoxProfile = new FirefoxProfile();
    driver = new FirefoxDriver(firefoxBinary, firefoxProfile);

    Default Answered on May 16, 2017.
    Add Comment

    Are you working on office machine which has Antivirus on it?

    Then use this

    System.setProperty(“webdriver.marionette.Firefox”, “Libs/geckodriver.exe”);

    Default Answered 5 days ago.
    Add Comment
  • Your Answer

    By posting your answer, you agree to the privacy policy and terms of service.