title: Selenium Webdriver PhantomJS C# always opens a cmd window
body: <p>I am trying to use PhantomJS with Selenium Webdriver in C#. Following is my code:</p>
  
  <pre><code>IWebDriver driver = new PhantomJSDriver();
  driver.Navigate().GoToUrl("http://www.google.com");
  Console.WriteLine(driver.Url);
  driver.Quit();
  </code></pre>
  
  <p>The code works fine but whenever it runs, it opens up a cmd window where all the log of the phantomjs is displayed. The cmd is also closed with <code>driver.Quit()</code>.</p>
  
  <p>The problem is that I do not want the cmd window to be displayed. What should I do to achieve this?</p>
  
  <p>Update:
  When I do the same code in Python, the cmd window does not show up. But if I convert the python script to exe using py2exe, the cmd windows starts getting displayed again.</p>