title: Setting service_args for phantomjs in selenium-webdriver for node
body: <p>I need to be able to run phantomjs with the following arg:</p>
  
  <p>--ignore-ssl-errors=true</p>
  
  <p>The page I'm testing uses a self-signed cert so I need the arg to open the page.  I'm trying to pass the arg in webdriver using the snippet below:</p>
  
  <pre><code>capabilities = webdriver.Capabilities.phantomjs();
  capabilities.set('service_args', '--ignore-ssl-errors=true');
  driver = new webdriver.Builder().
      withCapabilities(capabilities).
      build();
  </code></pre>
  
  <p>Is the correct way to pass the service_args? I actually hope not since I can't load my test page.  I can open the page by running:</p>
  
  <pre><code>phantomjs --ignore-ssl-errors=true myTest.js
  </code></pre>
  
  <p>Here is the code in myTest.js</p>
  
  <pre><code>var page = new WebPage();
  page.open('https://my.somefaketestpage.com/', function (status) {
          just_wait();
  });
  
  function just_wait() {
      setTimeout(function() {
              page.render('screenshot.png');
              phantom.exit();
      }, 2000);
  }
  </code></pre>