title: How to add a proxy with auth to ChromeDriver on Watir
body: <p>I'm using Watir on Ruby which uses Selenium as its underlying framework. I'm using ChromeDriver, and to set up a proxy I sually did this:</p>
  
  <pre><code>b = Watir::Browser.new :chrome, :switches =&gt; ["--proxy-server=11.1.1.11:3011"]
  </code></pre>
  
  <p>Sometimes, the proxy comes with user,password authentication like this:</p>
  
  <pre><code>11.1.1.11:3011:3011:user:pass
  </code></pre>
  
  <p>but when I try to put that string into <code>--proxy-server</code> I get an error.</p>
  
  <p>How can I configure ChromeDriver to use the authentication? I've tried the format often suggested in other SO answers which is:</p>
  
  <pre><code>http://user:pass@11.1.1.11:3011
  </code></pre>
  
  <p>but that didn't work. Tried it without the <code>http</code> part, also didn't work.</p>