title: c# Selenium 2.53 moving to marionette driver after firefox upgrade to 47
body: <p>I am trying to move into the upgraded firefox web browser automation using selenium. It seems that selenium needs marionette driver to continue working. I followed the instructions set by the devs,</p>
  
  <ol>
  <li>downloaded the driver</li>
  <li>renamed it to wires.exe</li>
  </ol>
  
  <p>The following code didnt manage to properly set the PATH to a custom path.</p>
  
  <p>System.Environment.SetEnvironmentVariable("webdriver.gecko.driver", "@C:\DOWNLOADS\wires.exe")</p>
  
  <p>so i added wires.exe to the debug\bin folder and then wires.exe worked properly but i got the following error</p>
  
  <blockquote>
    <p><strong>System.InvalidOperationException was caught   Message=entity not found   Source=WebDriver</strong></p>
  </blockquote>
  
  <p>this is the code i use to start webdriver</p>
  
  <pre><code>FirefoxOptions option1 = new FirefoxOptions();
  option1.IsMarionette = true;
  option1.AddAdditionalCapability("marionette", true);
  driver = new FirefoxDriver(option1);
  </code></pre>