title: Selenium Firefox Marionette Driver with .NET C#
body: <p>I've been using Selenium (<a href="http://www.seleniumhq.org/">http://www.seleniumhq.org/</a>) recently for testing purposes. It randomly stopped working and I believe this is due to Selenium WebDriver 2.53.0 not being compatible with Firefox 47 anymore (the WebDriver component which handles Firefox browsers (FirefoxDriver) has been discontinued). </p>
  
  <p>Marionette ([<a href="https://developer.mozilla.org/en-US/docs/Mozilla/QA/Marionette/WebDriver#.NET][2]">https://developer.mozilla.org/en-US/docs/Mozilla/QA/Marionette/WebDriver#.NET][2]</a>) is the next generation of FirefoxDriver and I've been trying to get this to work on my machine but have had no luck.</p>
  
  <p>I have so far downloaded the driver, renamed the file as wires.exe and saved in the root directory of my website. I have then added the following code:</p>
  
  <pre><code>string strWires = @"Z:\Web_Development\Websites\test\wires.exe";
  Environment.SetEnvironmentVariable("webdriver.gecko.driver", strWires);
  
  FirefoxOptions options = new FirefoxOptions();
  options.IsMarionette = true;
  FirefoxDriver driver = new FirefoxDriver(options);
  </code></pre>
  
  <p>I recieve the following error message however:</p>
  
  <blockquote>
    <p>"An exception of type 'OpenQA.Selenium.DriverServiceNotFoundException'
    occurred in WebDriver.dll but was not handled in user code</p>
    
    <p>Additional information: The wires.exe file does not exist in the
    current directory or in a directory on the PATH environment variable.
    The driver can be downloaded at
    github.com/jgraham/wires/releases."</p>
  </blockquote>
  
  <p>It would be very much appreciated if anyone knows how to get the Marionette driver working with Selenium (or could even just point me in the right direction) and could provide step by step instructions?</p>
  
  <p>Thanks,</p>
  
  <p>Daniel</p>