WebPagetest Forums
How to set proxy for wptdriver - Printable Version

+- WebPagetest Forums (https://www.webpagetest.org/forums)
+-- Forum: WebPagetest (/forumdisplay.php?fid=7)
+--- Forum: Private Instances (/forumdisplay.php?fid=12)
+--- Thread: How to set proxy for wptdriver (/showthread.php?tid=14232)



How to set proxy for wptdriver - sally - 03-02-2016 04:32 PM

For firefox, I tried adding proxy in the prefs.js and it's working.

For Chrome, I tried adding the following parameter in the wptdriver.ini. But looks it's not working.
Here's the chrome options in wptdriver.ini.
[chrome]
exe="C:\Program Files (x86)\Google\Chrome\Application\chrome.exe"
options='--load-extension="%WPTDIR%\extension" --user-data-dir="%PROFILE%" --proxy-pac-url="http://xxx.xxx.xxx/config.pac"'


The config.pac looks like this:

function FindProxyForURL(url, host) {
if (host == '127.0.0.1'){
return 'DIRECT';
}
return "PROXY xxxx.xxx.xxx:8080";
}

Here's the screen when I remove "--no-proxy-server" and add the above proxy pac settings. Any idea? Please help. Thanks a lot.

[attachment=575]