title: PAC file proxy setup using Selenium -Browserstack
body: <p>I need to set my Browser's proxy with Automatic Proxy configuration URL as shown in the screenshot below.</p>
  
  <p>I am trying to achieve this using Selenium and Browserstack as test environment.</p>
  
  <p>Set the proxy as shown below.</p>
  
  <blockquote>
    <p>Proxy proxy = new Proxy();  <br/>
    proxy.setProxyAutoconfigUrl("<a href="http://pokgsa.ibm.com/gsa/pokgsa/home/j/m/jmit/web/public/proxy.pac" rel="nofollow noreferrer">http://pokgsa.ibm.com/gsa/pokgsa/home/j/m/jmit/web/public/proxy.pac</a>");  <br/>
    DesiredCapabilities caps = new DesiredCapabilities(); <br/>
     caps.setCapability(CapabilityType.PROXY, proxy);  <br/>
               caps.setCapability("browser", "Chrome");  <br/>
                caps.setCapability("browser_version", "63.0");  <br/>
                caps.setCapability("os", "Windows");  <br/>
                caps.setCapability("os_version", "7");  <br/>
                caps.setCapability("resolution", "1366x768");</p>
  </blockquote>
  
  <p><a href="https://i.stack.imgur.com/6b3yT.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/6b3yT.jpg" alt="enter image description here"></a></p>
  
  <p>Tried to set the proxy configuration locally and it works however it does not work on browserstack. I think the proxy is not getting set on the virtual browser. </p>