Firefox browser driver issue Not loading I m getting the below Error typeError addon is null

0 votes

Below is my code.

public class firstTest {

    public static void main(String[] args) {

        System.setProperty("webdriver.gecko.driver", "E:\\SOFTWARE\\drivers\\geckodriver.exe");
        WebDriver driver = new FirefoxDriver();
        driver.get("http://www.google.com");
    }
}

While executing above code I am getting following error :

Unable to read VR Path Registry from C:\Users\DEEPAK D P\AppData\Local\openvr\openvrpaths.vrpath
JavaScript error: resource://gre/modules/addons/XPIProvider.jsm, line 3345: TypeError: addon is null
1521607690370   addons.productaddons    INFO    sending request to: https://aus5.mozilla.org/update/3/GMP/59.0.1/20180315233128/WINNT_x86_64-msvc-x64/en-GB/release/Windows_NT%2010.0.0.0.16299.125%20(x64)/default/default/update.xml
1521607691520   addons.productaddons    INFO    Completed downloading document
1521607692630   addons.productaddons    INFO    downloadXHR File download. status=200
1521607692638   addons.productaddons    INFO    Downloaded file will be saved to C:\Users\DEEPAK~1\AppData\Local\Temp\tmpaddon-c492c1
1521607698968   addons.productaddons    INFO    downloadXHR File download. status=200
1521607698976   addons.productaddons    INFO    Downloaded file will be saved to C:\Users\DEEPAK~1\AppData\Local\Temp\tmpaddon-47ef79

    at org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.start(NewProfileExtensionConnection.java:122)
    at org.openqa.selenium.firefox.FirefoxDriver.startClient(FirefoxDriver.java:271)
    at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:117)
    at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:218)
    at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:211)
    at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:207)
    at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:120)
    at tests.firstTest.main(firstTest.java:22)
Exception in thread "main" org.openqa.selenium.WebDriverException: Failed to connect to binary FirefoxBinary(C:\Program Files (x86)\Mozilla Firefox\firefox.exe) on port 7055; process output follows: 
driver@googlecode.com
1521607670798   addons.xpi  DEBUG   Ignoring file entry whose name is not a valid add-on ID: C:\Users\xxx \AppData\Local\Temp\anonymous4306519380516409248webdriver-profile\extensions\webdriver-staging
1521607670798   addons.xpi  DEBUG   Existing add-on fxdriver@googlecode.com in app-profile
1521607670800   addons.xpi  INFO    Mapping activity-stream@mozilla.org to C:\Program Files (x86)\Mozilla Firefox\browser\features\activity-stream@mozilla.org.xpi
1521607670800   addons.xpi  INFO    Mapping aushelper@mozilla.org to C:\Program Files (x86)\Mozilla Firefox\browser\features\aushelper@mozilla.org.xpi
1521607670800   addons.xpi  INFO    Mapping firefox@getpocket.com to C:\Program Files (x86)\Mozilla Firefox\browser\features\firefox@getpocket.com.xpi
1521607670800   addons.xpi  INFO    Mapping followonsearch@mozilla.com to C:\Program Files (x86)\Mozilla Firefox\browser\features\followonsearch@mozilla.com.xpi
1521607670800   addons.xpi  INFO    Mapping formautofill@mozilla.org to C:\Program Files (x86)\Mozilla Firefox\browser\features\formautofill@mozilla.org.xpi
1521607670800   addons.xpi  INFO    Mapping onboarding@mozilla.org to C:\Program Files (x86)\Mozilla Firefox\browser\features\onboarding@mozilla.org.xpi
1521607670800   addons.xpi  INFO    Mapping screenshots@mozilla.org to C:\Program Files (x86)\Mozilla Firefox\browser\features\screenshots@mozilla.org.xpi
1521607670800   addons.xpi  INFO    Mapping shield-recipe-client@mozilla.org to C:\Program Files (x86)\Mozilla Firefox\browser\features\shield-recipe-client@mozilla.org.xpi
1521607670800   addons.xpi  INFO    Mapping webcompat@mozilla.org to C:\Program Files (x86)\Mozilla Firefox\browser\features\webcompat@mozilla.org.xpi
1521607670802   addons.xpi  DEBUG   Existing add-on activity-stream@mozilla.org in app-system-defaults
1521607670802   addons.xpi  DEBUG   Existing add-on aushelper@mozilla.org in app-system-defaults
1521607670802   addons.xpi  DEBUG   Existing add-on firefox@getpocket.com in app-system-defaults
1521607670802   addons.xpi  DEBUG   Existing add-on followonsearch@mozilla.com in app-system-defaults
1521607670802   addons.xpi  DEBUG   Existing add-on formautofill@mozilla.org in app-system-defaults
1521607670804   addons.xpi  DEBUG   Existing add-on onboarding@mozilla.org in app-system-defaults
1521607670804   addons.xpi  DEBUG   Existing add-on screenshots@mozilla.org in app-system-defaults
1521607670804   addons.xpi  DEBUG   Existing add-on shield-recipe-client@mozilla.org in app-system-defaults
1521607670804   addons.xpi  DEBUG   Existing add-on webcompat@mozilla.org in app-system-defaults
1521607670806   addons.xpi  INFO    Mapping {82AF8DCA-6DE9-405D-BD5E-43525BDAD38A} to C:\Program Files (x86)\Mozilla Firefox\browser\extensions\{82AF8DCA-6DE9-405D-BD5E-43525BDAD38A}.xpi
1521607670806   addons.xpi  INFO    Mapping {972ce4c6-7e08-4474-a285-3208198ce6fd} to C:\Program Files (x86)\Mozilla Firefox\browser\extensions\{972ce4c6-7e08-4474-a285-3208198ce6fd}.xpi
1521607670806   addons.xpi  DEBUG   Existing add-on {82AF8DCA-6DE9-405D-BD5E-43525BDAD38A} in app-global
1521607670806   addons.xpi  DEBUG   Existing add-on {972ce4c6-7e08-4474-a285-3208198ce6fd} in app-global
1521607670806   addons.xpi  DEBUG   getInstallState changed: false, state: {}
Unable to read VR Path Registry from C:\Users\DEEPAK D P\AppData\Local\openvr\openvrpaths.vrpath
JavaScript error: resource://gre/modules/addons/XPIProvider.jsm, line 3345: TypeError: addon is null
1521607690370   addons.productaddons    INFO    sending request to: https://aus5.mozilla.org/update/3/GMP/59.0.1/20180315233128/WINNT_x86_64-msvc-x64/en-GB/release/Windows_NT%2010.0.0.0.16299.125%20(x64)/default/default/update.xml
1521607691520   addons.productaddons    INFO    Completed downloading document
1521607692630   addons.productaddons    INFO    downloadXHR File download. status=200
1521607692638   addons.productaddons    INFO    Downloaded file will be saved to C:\Users\DEEPAK~1\AppData\Local\Temp\tmpaddon-c492c1
1521607698968   addons.productaddons    INFO    downloadXHR File download. status=200
1521607698976   addons.productaddons    INFO    Downloaded file will be saved to C:\Users\DEEPAK~1\AppData\Local\Temp\tmpaddon-47ef79

Build info: version: '2.48.2', revision: '41bccdd', time: '2015-10-09 19:59:12'
System info: host: 'xxx', ip: '192.168.43.34', os.name: 'Windows 8.1', os.arch: 'amd64', os.version: '6.3', java.version: '1.8.0_40'
Driver info: driver.version: FirefoxDriver
    at org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.start(NewProfileExtensionConnection.java:134)
    at org.openqa.selenium.firefox.FirefoxDriver.startClient(FirefoxDriver.java:271)
    at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:117)
    at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:218)
    at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:211)
    at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:207)
    at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:120)
    at tests.firstTest.main(firstTest.java:22)
Caused by: org.openqa.selenium.firefox.NotConnectedException: Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms. Firefox console output:
driver@googlecode.com
1521607670798   addons.xpi  DEBUG   Ignoring file entry whose name is not a valid add-on ID: C:\Users\DEEPAK D P\AppData\Local\Temp\anonymous4306519380516409248webdriver-profile\extensions\webdriver-staging
1521607670798   addons.xpi  DEBUG   Existing add-on fxdriver@googlecode.com in app-profile
Mar 28, 2018 in Selenium by code_ninja
• 6,300 points
2,778 views

1 answer to this question.

–1 vote

The error is pretty straight forward. Its because of the below outdated applications:

Build info: version: '2.48.2', revision: '41bccdd', time: '2015-10-09 19:59:12'
System info: host: 'xxx', ip: '192.168.43.34', os.name: 'Windows 8.1', os.arch: 'amd64', os.version: '6.3', java.version: '1.8.0_40'
Driver info: driver.version: FirefoxDriver

Upgrade the following:

  • JDK version
  • Selenium JARS
  • Download the latest Gecko Driver
  • Upgrade your Firefox browser version to the latest

It should work fine once these are done. Let me know what happens.

answered Mar 28, 2018 by nsv999
• 5,500 points

Related Questions In Selenium

0 votes
1 answer

Firefox Error: “Your connection is not secure” while launching driver with Selenium 3.0.1 using Java

Download Firefox 55 beta and set capabilities.setCapability("acceptInsecureCerts", true); Here ...READ MORE

answered Sep 17, 2018 in Selenium by Meci Matt
• 9,460 points
1,803 views
0 votes
1 answer

What is the actual conflict while performing click() on web element, and getting an error like element is not clickable at point(x,y)?

Hey @sastry, the error Element is not clickable ...READ MORE

answered Nov 27, 2019 in Selenium by Sirajul
• 59,230 points
3,532 views
+1 vote
5 answers

Getting this error: “Element is not clickable at point”

There are 3 possible solutions for this: 1. ...READ MORE

answered Apr 21, 2018 in Selenium by king_kenny
• 3,710 points
83,188 views
0 votes
2 answers

Finding WebDriver element with Class Name in java

The better way to handle this element ...READ MORE

answered Apr 10, 2018 in Selenium by nsv999
• 5,500 points
13,686 views
0 votes
2 answers

Problem while using InternetExplorerDriver in Selenium WebDriver

enable trusted connection  in internet explorer by ...READ MORE

answered Aug 31, 2020 in Selenium by Sri
• 3,190 points
9,149 views
0 votes
1 answer

Geo-location microphone camera pop up

To Allow or Block the notification, access using Selenium and you have to ...READ MORE

answered May 11, 2018 in Selenium by Samarpit
• 5,910 points
7,228 views
0 votes
1 answer

Selenium ChromeDriver issue - Want to run it in background, but not as headless browser

This is a flaw with ChromeDriver. Tried ...READ MORE

answered Mar 27, 2018 in Selenium by nsv999
• 5,500 points
8,068 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP