title: PhantomJSDriver- How to initialize the driver?
body: <p>Can someone tell me how I begin to test with PhantomJS? I have downloaded the PhantomJS exe file and also set my "path" variable.</p>
  
  <p>And I do something similar for chrome like</p>
  
  <p><code>if(config.getProperty("browser").equals("chrome"))
          {
              System.setProperty("webdriver.chrome.driver", "C:drivers\\chromedriver.exe");
              driver= new ChromeDriver();
          }</code></p>
  
  <p>which is </p>
  
  <pre><code>if(config.getProperty("browser").equals("phantom"))
      {
          System.setProperty("webdriver.chrome.driver", "C:\\drivers\\chromedriver.exe");
          driver= new PhantomJSDriver();
      }
  </code></pre>
  
  <p>But, this does not work. Please help. I do not want to use RemoteWebDriver or GhostDriver</p>