Current time: 10-21-2019, 12:44 AM Hello There, Guest! (LoginRegister)

Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to set proxy for wptdriver
03-02-2016, 04:32 PM (This post was last modified: 03-04-2016 08:00 PM by sally.)
Post: #1
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.
[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.

   
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 2 Guest(s)