title: using a proxy with phantomjs in selenium webdriver
body: <p>I'm trying to configure a proxy with PhantomJS 1.9.1 in a ruby (1.8.7) script for selenium webdriver (2.25).</p>
  
  <p>I saw a few examples with Firefox, and I successfully did it with this browser. I used this code :</p>
  
  <pre><code>profile = Selenium::WebDriver::Firefox::Profile.new
      profile.proxy = Selenium::WebDriver::Proxy.new :ssl =&gt; 'chronos.landebitel.local:3128'
      $browser = Watir::Browser.new :firefox, :profile =&gt; profile
  </code></pre>
  
  <p>But I can't find any examples for phantomjs. I searched and tried  many solutions, but none works.</p>
  
  <p>Can someone can give me an example to help me?</p>