title: PATH error visual studio Selenium WebDriver
body: <p>I am trying to run a simple program but getting the following error:</p>
  
  <blockquote>
    <p>An unhandled exception of type 'OpenQA.Selenium.WebDriverException'
    occurred in WebDriver.dll</p>
    
    <p>Additional information: Cannot find Firefox binary in PATH or default
    install locations. Make sure Firefox is installed. OS appears to be:
    Vista</p>
  </blockquote>
  
  <p>Code:</p>
  
  <pre><code>using System;
  using System.Collections.Generic;
  using System.Linq;
  using System.Text;
  using System.Threading.Tasks;
  using OpenQA.Selenium;
  using OpenQA.Selenium.Firefox;
  
  namespace selenium
  {
      class Program
      {
             static void Main(string[] args)
          {
              IWebDriver driver = new FirefoxDriver();
  
              driver.Navigate().GoToUrl("http://www.reuters.com");
              driver.Manage().Window.Maximize();
  
              IWebElement searchInput = driver.FindElement(By.XPath("//html/body/div[10]/div[3]/div/td[1]"));
              searchInput.GetAttribute("value").ToString();
  
              driver.Close();           
  
          }
      }
  }
  </code></pre>
  
  <p>I checked the environment variables, and I have the following in the path:</p>
  
  <blockquote>
    <p>PATH=C:\Program Files\Mozilla Firefox\firefox.exe</p>
  </blockquote>
  
  <p>I am currently running Windows 10, Visual Studio 2015 and selenium Webdriver 2.53.0</p>