title: Unable to start the FirefoxDriver using Maven
body: <p>With the help of Maven, I'm trying to launch the firefox browser and passing the google url. But it is not working after the launch of firefox browser.</p>
  <p>I have added all the jars in the pom.xml dependency.</p>
  <pre><code>driver = new FirefoxDriver();
  </code></pre>
  <p>The above line is not working and guide me to reach out.</p>
  <p><strong>Code:</strong></p>
  <pre><code>public class Test {
      WebDriver driver;
      
      @BeforeTest
      public void main() {
          // TODO Auto-generated method stub
          System.out.println(&quot;Driver is running&quot;);
          driver = new FirefoxDriver();
          System.out.println(driver.toString());
          System.out.println(&quot;Driver is running&quot;);
          driver.manage().window().maximize();
      }
      
      @org.testng.annotations.Test
      public void open(){
          driver.get(&quot;www.google.com&quot;);
      }
      
      @AfterTest
      public void close() throws InterruptedException{
          driver.wait(5000);
      }
  }
  </code></pre>
  <p><strong>POM.xml</strong></p>
  <pre><code>&lt;project xmlns=&quot;http://maven.apache.org/POM/4.0.0&quot; xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot; xsi:schemaLocation=&quot;http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd&quot;&gt;
   &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
   &lt;groupId&gt;com.maven.sample&lt;/groupId&gt;
   &lt;artifactId&gt;first&lt;/artifactId&gt;
   &lt;version&gt;0.0.1-SNAPSHOT&lt;/version&gt;
   &lt;name&gt;Sample Project&lt;/name&gt;
   &lt;build&gt;
      &lt;plugins&gt;
          &lt;plugin&gt;
              &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
              &lt;artifactId&gt;maven-surefire-plugin&lt;/artifactId&gt;
              &lt;version&gt;2.19.1&lt;/version&gt;
                  &lt;configuration&gt;
                      &lt;suiteXmlFiles&gt;
                      &lt;!-- TestNG suite XML files --&gt;
                          &lt;suiteXmlFile&gt;testng.xml&lt;/suiteXmlFile&gt;
                      &lt;/suiteXmlFiles&gt;
                  &lt;/configuration&gt;
          &lt;/plugin&gt;
      &lt;/plugins&gt;
  &lt;/build&gt;
      &lt;dependencies&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
              &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;
              &lt;version&gt;3.1&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.seleniumhq.selenium&lt;/groupId&gt;
              &lt;artifactId&gt;selenium-java&lt;/artifactId&gt;
              &lt;version&gt;2.43.0&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;com.google.guava&lt;/groupId&gt;
              &lt;artifactId&gt;guava&lt;/artifactId&gt;
              &lt;version&gt;19.0&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.testng&lt;/groupId&gt;
              &lt;artifactId&gt;testng&lt;/artifactId&gt;
              &lt;version&gt;6.9.10&lt;/version&gt;
          &lt;/dependency&gt;
    &lt;/dependencies&gt;
  &lt;/project&gt;
  </code></pre>
  <p><strong>Testng.xml</strong></p>
  <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
  &lt;!DOCTYPE suite SYSTEM &quot;http://testng.org/testng-1.0.dtd&quot;&gt;
  &lt;suite name=&quot;Automationsuite&quot;&gt;
    &lt;test name=&quot;demoTest&quot;&gt;
      &lt;classes&gt;
         &lt;class name=&quot;first.Test&quot; /&gt;
      &lt;/classes&gt;
    &lt;/test&gt;  
  &lt;/suite&gt;
  </code></pre>
  <p><strong>Console:</strong></p>
  <pre><code>org.openqa.selenium.firefox.NotConnectedException: Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms. Firefox console output:
  S@k7computing.com in winreg-app-global
  1461736685578   addons.xpi  DEBUG   getInstallState changed: false, state: {&quot;app-profile&quot;:{&quot;fxdriver@googlecode.com&quot;:{&quot;d&quot;:&quot;C:\\Users\\MSTEMP\\AppData\\Local\\Temp\\anonymous6839848801827999862webdriver-profile\\extensions\\fxdriver@googlecode.com&quot;,&quot;e&quot;:false,&quot;v&quot;:&quot;2.42.0&quot;,&quot;st&quot;:1461736684069,&quot;mt&quot;:1461736683939}},&quot;app-system-defaults&quot;:{&quot;loop@mozilla.org&quot;:{&quot;d&quot;:&quot;C:\\Program Files (x86)\\Mozilla Firefox\\browser\\features\\loop@mozilla.org.xpi&quot;,&quot;e&quot;:true,&quot;v&quot;:&quot;1.1.14&quot;,&quot;st&quot;:1460445867014}},&quot;app-global&quot;:{&quot;{972ce4c6-7e08-4474-a285-3208198ce6fd}&quot;:{&quot;d&quot;:&quot;C:\\Program Files (x86)\\Mozilla Firefox\\browser\\extensions\\{972ce4c6-7e08-4474-a285-3208198ce6fd}.xpi&quot;,&quot;e&quot;:true,&quot;v&quot;:&quot;45.0.2&quot;,&quot;st&quot;:1460445867030}},&quot;winreg-app-global&quot;:{&quot;k7srff_enUS@k7computing.com&quot;:{&quot;d&quot;:&quot;C:\\Program Files (x86)\\K7 Computing\\K7TSecurity\\K7SR\\K7WebProtection.xpi&quot;,&quot;e&quot;:false,&quot;v&quot;:&quot;2.4&quot;,&quot;st&quot;:1451992580000}}}
  1461736685579   addons.xpi  DEBUG   No changes found
  1461736685584   addons.xpi  DEBUG   Registering manifest for C:\Program Files (x86)\Mozilla Firefox\browser\features\loop@mozilla.org.xpi
  1461736685585   addons.xpi  DEBUG   Loading bootstrap scope from C:\Program Files (x86)\Mozilla Firefox\browser\features\loop@mozilla.org.xpi
  1461736685600   addons.xpi  DEBUG   Calling bootstrap method startup on loop@mozilla.org version 1.1.14
  1461736685611   addons.xpi-utils    DEBUG   Starting async load of XPI database C:\Users\MSTEMP\AppData\Local\Temp\anonymous6839848801827999862webdriver-profile\extensions.json
  1461736685616   addons.manager  DEBUG   Starting provider: &lt;unnamed-provider&gt;
  1461736685616   addons.manager  DEBUG   Registering shutdown blocker for &lt;unnamed-provider&gt;
  1461736685616   addons.manager  DEBUG   Provider finished startup: &lt;unnamed-provider&gt;
  1461736685627   addons.manager  DEBUG   Registering shutdown blocker for XPIProvider
  1461736685627   addons.manager  DEBUG   Provider finished startup: XPIProvider
  1461736685627   addons.manager  DEBUG   Starting provider: LightweightThemeManager
  1461736685627   addons.manager  DEBUG   Registering shutdown blocker for LightweightThemeManager
  1461736685627   addons.manager  DEBUG   Provider finished startup: LightweightThemeManager
  1461736685628   addons.manager  DEBUG   Starting provider: GMPProvider
  1461736685631   addons.manager  DEBUG   Registering shutdown blocker for GMPProvider
  1461736685631   addons.manager  DEBUG   Provider finished startup: GMPProvider
  1461736685631   addons.manager  DEBUG   Starting provider: PluginProvider
  1461736685631   addons.manager  DEBUG   Registering shutdown blocker for PluginProvider
  1461736685632   addons.manager  DEBUG   Provider finished startup: PluginProvider
  1461736685632   addons.manager  DEBUG   Completed startup sequence
  1461736685820   addons.xpi-utils    DEBUG   Async JSON file read took 0 MS
  1461736685820   addons.xpi-utils    DEBUG   Finished async read of XPI database, parsing...
  1461736685821   addons.xpi-utils    DEBUG   Successfully read XPI database
  *** Blocklist::_loadBlocklistFromFile: blocklist is disabled
  1461736685912   addons.manager  DEBUG   Starting provider: PreviousExperimentProvider
  1461736685912   addons.manager  DEBUG   Registering shutdown blocker for PreviousExperimentProvider
  1461736685912   addons.manager  DEBUG   Provider finished startup: PreviousExperimentProvider
  1461736706152   addons.xpi  DEBUG   Calling bootstrap method shutdown on loop@mozilla.org version 1.1.14
  1461736706264   addons.manager  DEBUG   shutdown
  1461736706264   addons.manager  DEBUG   Calling shutdown blocker for &lt;unnamed-provider&gt;
  1461736706265   addons.manager  DEBUG   Calling shutdown blocker for XPIProvider
  1461736706265   addons.xpi  DEBUG   shutdown
  1461736706265   addons.xpi-utils    DEBUG   shutdown
  1461736706265   addons.manager  DEBUG   Calling shutdown blocker for LightweightThemeManager
  1461736706266   addons.manager  DEBUG   Calling shutdown blocker for GMPProvider
  1461736706267   addons.manager  DEBUG   Calling shutdown blocker for PluginProvider
  1461736706268   addons.manager  DEBUG   Calling shutdown blocker for PreviousExperimentProvider
  1461736706270   addons.xpi  DEBUG   Notifying XPI shutdown observers
  1461736706274   addons.manager  DEBUG   Async provider shutdown done
  
      at org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.start(NewProfileExtensionConnection.java:118)
      at org.openqa.selenium.firefox.FirefoxDriver.startClient(FirefoxDriver.java:246)
      at org.openqa.selenium.remote.RemoteWebDriver.&lt;init&gt;(RemoteWebDriver.java:115)
      at org.openqa.selenium.firefox.FirefoxDriver.&lt;init&gt;(FirefoxDriver.java:191)
      at org.openqa.selenium.firefox.FirefoxDriver.&lt;init&gt;(FirefoxDriver.java:186)
      at org.openqa.selenium.firefox.FirefoxDriver.&lt;init&gt;(FirefoxDriver.java:182)
      at org.openqa.selenium.firefox.FirefoxDriver.&lt;init&gt;(FirefoxDriver.java:95)
      at selenium.Sample.main(Sample.java:14)
  Exception in thread &quot;main&quot; org.openqa.selenium.WebDriverException: Failed to connect to binary FirefoxBinary(C:\Program Files (x86)\Mozilla Firefox\firefox.exe) on port 7055; process output follows: 
  S@k7computing.com in winreg-app-global
  1461736685578   addons.xpi  DEBUG   getInstallState changed: false, state: {&quot;app-profile&quot;:{&quot;fxdriver@googlecode.com&quot;:{&quot;d&quot;:&quot;C:\\Users\\MSTEMP\\AppData\\Local\\Temp\\anonymous6839848801827999862webdriver-profile\\extensions\\fxdriver@googlecode.com&quot;,&quot;e&quot;:false,&quot;v&quot;:&quot;2.42.0&quot;,&quot;st&quot;:1461736684069,&quot;mt&quot;:1461736683939}},&quot;app-system-defaults&quot;:{&quot;loop@mozilla.org&quot;:{&quot;d&quot;:&quot;C:\\Program Files (x86)\\Mozilla Firefox\\browser\\features\\loop@mozilla.org.xpi&quot;,&quot;e&quot;:true,&quot;v&quot;:&quot;1.1.14&quot;,&quot;st&quot;:1460445867014}},&quot;app-global&quot;:{&quot;{972ce4c6-7e08-4474-a285-3208198ce6fd}&quot;:{&quot;d&quot;:&quot;C:\\Program Files (x86)\\Mozilla Firefox\\browser\\extensions\\{972ce4c6-7e08-4474-a285-3208198ce6fd}.xpi&quot;,&quot;e&quot;:true,&quot;v&quot;:&quot;45.0.2&quot;,&quot;st&quot;:1460445867030}},&quot;winreg-app-global&quot;:{&quot;k7srff_enUS@k7computing.com&quot;:{&quot;d&quot;:&quot;C:\\Program Files (x86)\\K7 Computing\\K7TSecurity\\K7SR\\K7WebProtection.xpi&quot;,&quot;e&quot;:false,&quot;v&quot;:&quot;2.4&quot;,&quot;st&quot;:1451992580000}}}
  1461736685579   addons.xpi  DEBUG   No changes found
  1461736685584   addons.xpi  DEBUG   Registering manifest for C:\Program Files (x86)\Mozilla Firefox\browser\features\loop@mozilla.org.xpi
  1461736685585   addons.xpi  DEBUG   Loading bootstrap scope from C:\Program Files (x86)\Mozilla Firefox\browser\features\loop@mozilla.org.xpi
  1461736685600   addons.xpi  DEBUG   Calling bootstrap method startup on loop@mozilla.org version 1.1.14
  1461736685611   addons.xpi-utils    DEBUG   Starting async load of XPI database C:\Users\MSTEMP\AppData\Local\Temp\anonymous6839848801827999862webdriver-profile\extensions.json
  1461736685616   addons.manager  DEBUG   Starting provider: &lt;unnamed-provider&gt;
  1461736685616   addons.manager  DEBUG   Registering shutdown blocker for &lt;unnamed-provider&gt;
  1461736685616   addons.manager  DEBUG   Provider finished startup: &lt;unnamed-provider&gt;
  1461736685627   addons.manager  DEBUG   Registering shutdown blocker for XPIProvider
  1461736685627   addons.manager  DEBUG   Provider finished startup: XPIProvider
  1461736685627   addons.manager  DEBUG   Starting provider: LightweightThemeManager
  1461736685627   addons.manager  DEBUG   Registering shutdown blocker for LightweightThemeManager
  1461736685627   addons.manager  DEBUG   Provider finished startup: LightweightThemeManager
  1461736685628   addons.manager  DEBUG   Starting provider: GMPProvider
  1461736685631   addons.manager  DEBUG   Registering shutdown blocker for GMPProvider
  1461736685631   addons.manager  DEBUG   Provider finished startup: GMPProvider
  1461736685631   addons.manager  DEBUG   Starting provider: PluginProvider
  1461736685631   addons.manager  DEBUG   Registering shutdown blocker for PluginProvider
  1461736685632   addons.manager  DEBUG   Provider finished startup: PluginProvider
  1461736685632   addons.manager  DEBUG   Completed startup sequence
  1461736685820   addons.xpi-utils    DEBUG   Async JSON file read took 0 MS
  1461736685820   addons.xpi-utils    DEBUG   Finished async read of XPI database, parsing...
  1461736685821   addons.xpi-utils    DEBUG   Successfully read XPI database
  *** Blocklist::_loadBlocklistFromFile: blocklist is disabled
  1461736685912   addons.manager  DEBUG   Starting provider: PreviousExperimentProvider
  1461736685912   addons.manager  DEBUG   Registering shutdown blocker for PreviousExperimentProvider
  1461736685912   addons.manager  DEBUG   Provider finished startup: PreviousExperimentProvider
  1461736706152   addons.xpi  DEBUG   Calling bootstrap method shutdown on loop@mozilla.org version 1.1.14
  1461736706264   addons.manager  DEBUG   shutdown
  1461736706264   addons.manager  DEBUG   Calling shutdown blocker for &lt;unnamed-provider&gt;
  1461736706265   addons.manager  DEBUG   Calling shutdown blocker for XPIProvider
  1461736706265   addons.xpi  DEBUG   shutdown
  1461736706265   addons.xpi-utils    DEBUG   shutdown
  1461736706265   addons.manager  DEBUG   Calling shutdown blocker for LightweightThemeManager
  1461736706266   addons.manager  DEBUG   Calling shutdown blocker for GMPProvider
  1461736706267   addons.manager  DEBUG   Calling shutdown blocker for PluginProvider
  1461736706268   addons.manager  DEBUG   Calling shutdown blocker for PreviousExperimentProvider
  1461736706270   addons.xpi  DEBUG   Notifying XPI shutdown observers
  1461736706274   addons.manager  DEBUG   Async provider shutdown done
  
  Build info: version: '2.42.0', revision: '5e824302019c86eae9c8c3ca9155e7307b410cf8', time: '2014-05-24 09:48:41'
  System info: host: 'VenkateshBabuRM', ip: '10.0.0.7', os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version: '1.8.0_91'
  Driver info: driver.version: FirefoxDriver
      at org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.start(NewProfileExtensionConnection.java:130)
      at org.openqa.selenium.firefox.FirefoxDriver.startClient(FirefoxDriver.java:246)
      at org.openqa.selenium.remote.RemoteWebDriver.&lt;init&gt;(RemoteWebDriver.java:115)
      at org.openqa.selenium.firefox.FirefoxDriver.&lt;init&gt;(FirefoxDriver.java:191)
      at org.openqa.selenium.firefox.FirefoxDriver.&lt;init&gt;(FirefoxDriver.java:186)
      at org.openqa.selenium.firefox.FirefoxDriver.&lt;init&gt;(FirefoxDriver.java:182)
      at org.openqa.selenium.firefox.FirefoxDriver.&lt;init&gt;(FirefoxDriver.java:95)
      at selenium.Sample.main(Sample.java:14)
  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:
  S@k7computing.com in winreg-app-global
  1461736685578   addons.xpi  DEBUG   getInstallState changed: false, state: {&quot;app-profile&quot;:{&quot;fxdriver@googlecode.com&quot;:{&quot;d&quot;:&quot;C:\\Users\\MSTEMP\\AppData\\Local\\Temp\\anonymous6839848801827999862webdriver-profile\\extensions\\fxdriver@googlecode.com&quot;,&quot;e&quot;:false,&quot;v&quot;:&quot;2.42.0&quot;,&quot;st&quot;:1461736684069,&quot;mt&quot;:1461736683939}},&quot;app-system-defaults&quot;:{&quot;loop@mozilla.org&quot;:{&quot;d&quot;:&quot;C:\\Program Files (x86)\\Mozilla Firefox\\browser\\features\\loop@mozilla.org.xpi&quot;,&quot;e&quot;:true,&quot;v&quot;:&quot;1.1.14&quot;,&quot;st&quot;:1460445867014}},&quot;app-global&quot;:{&quot;{972ce4c6-7e08-4474-a285-3208198ce6fd}&quot;:{&quot;d&quot;:&quot;C:\\Program Files (x86)\\Mozilla Firefox\\browser\\extensions\\{972ce4c6-7e08-4474-a285-3208198ce6fd}.xpi&quot;,&quot;e&quot;:true,&quot;v&quot;:&quot;45.0.2&quot;,&quot;st&quot;:1460445867030}},&quot;winreg-app-global&quot;:{&quot;k7srff_enUS@k7computing.com&quot;:{&quot;d&quot;:&quot;C:\\Program Files (x86)\\K7 Computing\\K7TSecurity\\K7SR\\K7WebProtection.xpi&quot;,&quot;e&quot;:false,&quot;v&quot;:&quot;2.4&quot;,&quot;st&quot;:1451992580000}}}
  1461736685579   addons.xpi  DEBUG   No changes found
  1461736685584   addons.xpi  DEBUG   Registering manifest for C:\Program Files (x86)\Mozilla Firefox\browser\features\loop@mozilla.org.xpi
  1461736685585   addons.xpi  DEBUG   Loading bootstrap scope from C:\Program Files (x86)\Mozilla Firefox\browser\features\loop@mozilla.org.xpi
  1461736685600   addons.xpi  DEBUG   Calling bootstrap method startup on loop@mozilla.org version 1.1.14
  1461736685611   addons.xpi-utils    DEBUG   Starting async load of XPI database C:\Users\MSTEMP\AppData\Local\Temp\anonymous6839848801827999862webdriver-profile\extensions.json
  1461736685616   addons.manager  DEBUG   Starting provider: &lt;unnamed-provider&gt;
  1461736685616   addons.manager  DEBUG   Registering shutdown blocker for &lt;unnamed-provider&gt;
  1461736685616   addons.manager  DEBUG   Provider finished startup: &lt;unnamed-provider&gt;
  1461736685627   addons.manager  DEBUG   Registering shutdown blocker for XPIProvider
  1461736685627   addons.manager  DEBUG   Provider finished startup: XPIProvider
  1461736685627   addons.manager  DEBUG   Starting provider: LightweightThemeManager
  1461736685627   addons.manager  DEBUG   Registering shutdown blocker for LightweightThemeManager
  1461736685627   addons.manager  DEBUG   Provider finished startup: LightweightThemeManager
  1461736685628   addons.manager  DEBUG   Starting provider: GMPProvider
  1461736685631   addons.manager  DEBUG   Registering shutdown blocker for GMPProvider
  1461736685631   addons.manager  DEBUG   Provider finished startup: GMPProvider
  1461736685631   addons.manager  DEBUG   Starting provider: PluginProvider
  1461736685631   addons.manager  DEBUG   Registering shutdown blocker for PluginProvider
  1461736685632   addons.manager  DEBUG   Provider finished startup: PluginProvider
  1461736685632   addons.manager  DEBUG   Completed startup sequence
  1461736685820   addons.xpi-utils    DEBUG   Async JSON file read took 0 MS
  1461736685820   addons.xpi-utils    DEBUG   Finished async read of XPI database, parsing...
  1461736685821   addons.xpi-utils    DEBUG   Successfully read XPI database
  *** Blocklist::_loadBlocklistFromFile: blocklist is disabled
  1461736685912   addons.manager  DEBUG   Starting provider: PreviousExperimentProvider
  1461736685912   addons.manager  DEBUG   Registering shutdown blocker for PreviousExperimentProvider
  1461736685912   addons.manager  DEBUG   Provider finished startup: PreviousExperimentProvider
  1461736706152   addons.xpi  DEBUG   Calling bootstrap method shutdown on loop@mozilla.org version 1.1.14
  1461736706264   addons.manager  DEBUG   shutdown
  1461736706264   addons.manager  DEBUG   Calling shutdown blocker for &lt;unnamed-provider&gt;
  1461736706265   addons.manager  DEBUG   Calling shutdown blocker for XPIProvider
  1461736706265   addons.xpi  DEBUG   shutdown
  1461736706265   addons.xpi-utils    DEBUG   shutdown
  1461736706265   addons.manager  DEBUG   Calling shutdown blocker for LightweightThemeManager
  1461736706266   addons.manager  DEBUG   Calling shutdown blocker for GMPProvider
  1461736706267   addons.manager  DEBUG   Calling shutdown blocker for PluginProvider
  1461736706268   addons.manager  DEBUG   Calling shutdown blocker for PreviousExperimentProvider
  1461736706270   addons.xpi  DEBUG   Notifying XPI shutdown observers
  1461736706274   addons.manager  DEBUG   Async provider shutdown done
  
      at org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.start(NewProfileExtensionConnection.java:118)
      ... 7 more
  </code></pre>