title: Remote Web Driver: using proxy in Chrome and Opera
body: <p>I need to test webapp in different browsers (FF, IE, Chrome, Opera) with proxy,
  but now i can do it only in FF and IE.</p>
  
  <p>I know three ways to start RemoteWebDriver with proxy</p>
  
  <p>1 way:</p>
  
  <pre><code>Proxy proxy = new Proxy();
  proxy.setProxyAutoconfigUrl(pacURL);
  
  DesiredCapabilities cap = DesiredCapabilities.&lt;browser&gt;();
  cap.setCapability(CapabilityType.PROXY, proxy);
  
  wd = new RemoteWebDriver(wdURL, cap);
  </code></pre>
  
  <p>2 way:</p>
  
  <pre><code>Proxy proxy = new Proxy();
  proxy.setHttpProxy(proxyHost + ":" + proxyPort);
  
  DesiredCapabilities cap = DesiredCapabilities.&lt;browser&gt;();
  cap.setCapability(CapabilityType.PROXY, proxy);
  
  wd = new RemoteWebDriver(wdURL, cap);
  </code></pre>
  
  <p>3 way: set system properties for Selenium Server (i can't use it because i don't know proxy port before test starts (proxy opens from test) and one Selenium Server can be used by many different tests in one time, and each of them must use different proxy).</p>
  
  <p>In FF works 1 and 2 methods.
  In IE only 2.</p>
  
  <p>Chrome doesn't support 1 and 2 methods, and i think because it use onle system proxy settings. And because of it i can run tests only on my local machine, one test for time.</p>
  
  <p>Opera has it's own proxy settings, but 1 and 2 methods don't work!</p>
  
  <p>How to start Opera (and maybe Chrome) via RWD with proxy settings?</p>