title: How to correctly set up a proxy with Selenium C# PhantomJSDriver?
body: <p>How do I <strong>correctly</strong> set up a proxy with Selenium C# PhantomJSDriver in a C# console application?</p>
  
  <p>I have looked high/low at all online docs and similar post with no success:</p>
  
  <ul>
  <li><a href="https://stackoverflow.com/questions/18921099/add-proxy-to-phantomjsdriver-selenium-c">Add proxy to PhantomJSDriver (Selenium C#)</a> </li>
  <li><a href="https://stackoverflow.com/questions/27495567/using-a-proxy-with-selenium">Using a proxy with Selenium</a> </li>
  <li><a href="https://stackoverflow.com/questions/30674994/how-to-setup-private-proxy-with-selenium">How to Setup Private Proxy with Selenium?</a></li>
  </ul>
  
  <p>Here's my code:</p>
  
  <pre><code>var options = new PhantomJSOptions();
  options.AddAdditionalCapability(CapabilityType.Proxy,"123.456.748.99:80");
  IWebDriver driver = new PhantomJSDriver(options);
  </code></pre>
  
  <p>Running this code I get the following error(s):</p>
  
  <blockquote>
    <p>**ERROR: Unexpected error. TypeError - undefined is not an object (evaluating 'proxyCapability["proxyType"].toLowerCase')</p>
  </blockquote>