title: Selenium C# FirefoxDriver not working for latest Selenium & Firefox
body: <p>The Selenium is supposed to work with Firefox without any drivers out of the box, however I found that it is not the case with the latest Selenium &amp; Firefox (install just days ago, Selenium 3 &amp; Firefox ERS 52.5).</p>
  
  <p>I'm following "<a href="http://www.swtestacademy.com/selenium-webdriver-csharp-nunit/" rel="nofollow noreferrer">Selenium C# and NUnit Pain Free Start Guide</a>" as a total newbie, but found the simple Selenium C# NUnit test is not working for Firefox. </p>
  
  <p>Here is my C# code:</p>
  
  <pre><code>using System;
  using System.Collections.Generic;
  using System.Linq;
  using System.Text;
  using System.Threading.Tasks;
  
  using NUnit.Framework;
  using OpenQA.Selenium;
  using OpenQA.Selenium.Firefox;
  using OpenQA.Selenium.Chrome;
  
  namespace NewSeleniumProject
  {
      [TestFixture]
      public class MyFirstTest
      {
          IWebDriver driver;
  
          [SetUp]
          public void SetupTest()
          {
              // driver = new ChromeDriver();
              driver = new FirefoxDriver();
  
              //driver = new FirefoxDriver(new FirefoxBinary(@"C:\Program Files (x86)\Mozilla Firefox\Firefox.exe"), new FirefoxProfile(), TimeSpan.FromMinutes(10));
  
              //var options = new FirefoxOptions();
              //options.BrowserExecutableLocation = @"C:\Program Files (x86)\Mozilla Firefox\firefox.exe";
              //driver = new FirefoxDriver(options);
  
          }
  
          [Test]
          public void myFirstTest()
          {
              driver.Navigate().GoToUrl("http://www.swtestacademy.com");
  
              Assert.AreEqual("SW Test Academy - Software Test Academy", driver.Title);
  
              driver.Close();
  
              driver.Quit();
          }
      }
  }
  </code></pre>
  
  <p>And the following are my journeys to get it working. </p>
  
  <ul>
  <li>First of all, the <code>driver = new ChromeDriver()</code> works for me without any hitch. </li>
  <li>When I was using 32b Firefox ERS 52 with <code>driver = new FirefoxDriver();</code>, I'm getting the "<code>Unable to determine the current version of FireFox using the registry</code>" error, however none of the answers from <a href="https://stackoverflow.com/questions/22508571/unable-to-determine-the-current-version-of-firefox-after-updated-to-28-0">Unable to determine the current version of FireFox after updated to 28.0</a> solves my problem. So I tried the "<em>Try uninstalling Firefox and then re-installing it. That's what I would do</em>" one. </li>
  <li>Wit 64b Firefox ERS 52 (and <code>driver = new FirefoxDriver();</code>), I'm getting the "<code>OpenQA.Selenium.WebDriverException : Cannot find Firefox binary in PATH or default install locations. Make sure Firefox is installed.</code>" error. </li>
  <li>When using the <code>var options = new FirefoxOptions()</code>, for both 32b and 64b Firefox, I'm getting "<code>OpenQA.Selenium.WebDriverException : The HTTP request to the remote WebDriver server for URL http://localhost:6985/session timed out after 60 seconds.</code>"</li>
  </ul>
  
  <p>Again, the whole setup I'm following is from "<a href="http://www.swtestacademy.com/selenium-webdriver-csharp-nunit/" rel="nofollow noreferrer">Selenium C# and NUnit Pain Free Start Guide</a>". What else I'm missing? Thx. </p>
  
  <p><strong>UPDATE</strong>:</p>
  
  <p>This question is <strong><em>not</em></strong> about the error:</p>
  
  <pre><code>OpenQA.Selenium.DriverServiceNotFoundException : The geckodriver.exe file does not exist in the current directory or in a directory on the PATH environment variable. 
  </code></pre>
  
  <p>which I've fixed by downloading the driver from <a href="https://github.com/mozilla/geckodriver/releases" rel="nofollow noreferrer">https://github.com/mozilla/geckodriver/releases</a>.</p>