1

I am trying to setup proxy within protractor and utilizing authentication with the proxy. However, it doesn't appear to be taking when I add the username and password to the proxy url and port.

For example here is my config.js file (relevant section)

capabilities: {
    browserName: 'chrome',
    'proxy':{
        'proxyType': 'manual',
        'httpProxy': 'http://username:password@url:port',
        'sslProxy': 'https://username:password@url:port',
    },
    version: '47.0'

If I don't put in authentication it works just fine, but when I put the authentication stuff in there, it acts like there isn't a proxy at all and just bypasses it altogether.

milk
  • 13
  • 7
  • Try putting your proxy values within quotes – KCaradonna Mar 23 '16 at 15:26
  • I just mis-typed that, good catch, I have updated in the original question for future reference. That doesn't work with quotes, just to be clear. – milk Mar 23 '16 at 16:30
  • It should be in format hostname:port see http://stackoverflow.com/questions/19849417/running-angularjs-protractor-with-proxy-to-https – KCaradonna Mar 23 '16 at 17:08
  • Yep, as I stated that does work, what, I am trying to do though is utilize authentication on my proxy, so that won't work, if I just do hostname:port, then I manually need to authenticate. What I would like to do is just have it pass in the credentials and utilize them for every test without manual intervention. – milk Mar 23 '16 at 17:12

0 Answers0