title: How to start PhantomJS with commandline options in Selenium?
body: <p>I can't find how to start phantomjs with command-line options like <code>--cookies-file=/path/to/cookies.txt</code> and other...</p>
  
  <p>Tried <code>driver = webdriver.PhantomJS('--cookies-file=/tmp/ph_cook.txt')</code> but nothing.</p>
  
  <p>For unknown reason <code>add_cookie</code> don't work to keep logged.</p>
  
  <p>I tried to start phantomjs like this:</p>
  
  <pre><code>driver = webdriver.PhantomJS(executable_path = "phantomjs --cookies-file=/tmp/ph_cook.txt --webdriver")
  </code></pre>
  
  <p>but getting error:</p>
  
  <pre><code>raise WebDriverException("Unable to start phantomjs with ghostdriver.", e)
  selenium.common.exceptions.WebDriverException: Message: Unable to start phantomjs with ghost driver.
  </code></pre>