title: Passing arguments to PhantomJS through WebDriver/GhostDriver
body: <p>I've been trying to get PhantomJS ( 1.9.7 )/GhostDriver to be initialized with some custom settings for quite a while, but have been completely unsuccessful.  I'm using wd.js as my WebDriver library, and I have tried just about every combination of properties that I can think of, however nothing has worked, and I haven't been able to find any documentation.</p>
  
  <p>Here's what I have tried passing ( userAgent shortened for sanity, it's a real one in my actual test cases ):</p>
  
  <p><code>{ browserName: "phantomjs", "userAgent": "foo" }</code></p>
  
  <p><code>{ browserName: "phantomjs", "settings": { "userAgent": "foo" } }</code></p>
  
  <p><code>{ browserName: "phantomjs", "page": { "userAgent": "foo" } }</code></p>
  
  <p><code>{ browserName: "phantomjs", "page": { "settings": { "userAgent": "foo" } } }</code></p>
  
  <p><code>{ browserName: "phantomjs", "phantomjs": { "page": { "userAgent": "foo" } } }</code> </p>
  
  <p><code>{ browserName: "phantomjs", "phantomjs": { page": { "settings": { "userAgent": "foo" } } } }</code></p>
  
  <p>And lot's more actually, using just about every combination of keys that I could think of from <a href="https://github.com/detro/ghostdriver#what-extra-webdriver-capabilities-ghostdriver-offers" rel="nofollow">https://github.com/detro/ghostdriver#what-extra-webdriver-capabilities-ghostdriver-offers</a> .  </p>
  
  <p>Does anyone have any idea what you need to pass in order to customize settings in PhantomJS when using Webdriver/Ghostdriver?</p>