Running automation for a mobile web project. I have set the below code for setting proxy. But its not working.
Anyone got it working?
Snippet:
DesiredCapabilities capabilities = new DesiredCapabilities();
capabilities.setCapability(“platformVersion”, “8.1”);
…
…
driver = new RemoteWebDriver(new URL(server),capabilities);
String proxyPacURL=“http://abctest.com:81/pacs/qa_yfor.pac”;
Proxy proxy = new Proxy();
proxy.setProxyAutoconfigUrl(proxyPacURL);
capabilities.setCapability(CapabilityType.PROXY, proxy);
driver = new RemoteWebDriver(new URL(server),capabilities);
Capabilities details from log:
Capabilities [{platform=MAC, javascriptEnabled=true, browserName=Safari, networkConnectionEnabled=false, desired={platformVersion=8.1, platformName=iOS, deviceName=iPhone Simulator, browserName=Safari, proxy={httpProxy=null, noProxy=null, socksUsername=null, ftpProxy=null, socksPassword=null, sslProxy=null, proxyAutoconfigUrl=http://abctest.com:81/pacs/qa_yfor.pac, proxyType=PAC, class=org.openqa.selenium.Proxy, autodetect=false, socksProxy=null, hCode=863947255}}, locationContextEnabled=false, platformVersion=8.1, databaseEnabled=false, platformName=iOS, deviceName=iPhone Simulator, safari=true, proxy={httpProxy=null, noProxy=null, socksUsername=null, ftpProxy=null, socksPassword=null, sslProxy=null, proxyAutoconfigUrl=http://abctest.com:81/pacs/qa_yfor.pac, proxyType=PAC, class=org.openqa.selenium.Proxy, autodetect=false, socksProxy=null, hCode=863947255}, webStorageEnabled=false, warnings={}, takesScreenshot=true}]
Thanks in advance,
Raghul