title: Selenium Webdriver: Specify filepath for Firefox exe
body: <p>Can someone advise me on how to set the path for the firefox exe file in Selenium (C#).</p>
  
  <p>I'm using the following code presently, however it is not working as hoped:</p>
  
  <pre><code> FirefoxProfile profile = new FirefoxProfile();
  
   profile.SetPreference("webdriver.firefox.bin", "C:\\Program Files (x86)\\Mozilla Firefox\\firefox.exe");
  
   IWebDriver driver = new FirefoxDriver(profile);
  </code></pre>
  
  <p>Any suggestions would be appreciated.</p>