How to set proxy for wptdriver

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.
exe=“C:\Program Files (x86)\Google\Chrome\Application\chrome.exe”
options=’–load-extension="%WPTDIR%\extension" --user-data-dir="%PROFILE%" --proxy-pac-url=“”’

The config.pac looks like this:

function FindProxyForURL(url, host) {
if (host == ‘’){
return ‘DIRECT’;
return “PROXY”;

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