Running AngularJS Protractor with proxy to https

后端 未结 1 754
没有蜡笔的小新
没有蜡笔的小新 2021-01-03 01:25

I get the following error in the command line when trying to run Protractor:

> Fatal error: protractor exited with code: 1

I n

1条回答
  •  栀梦
    栀梦 (楼主)
    2021-01-03 01:44

    According to the WebDriver capabilities documentation, you should use 'hostname:port' as the format for the httpProxy. E.g.:

    capabilities: {
      browserName: 'firefox',
      proxy: {
         proxyType: 'manual',
         httpProxy: 'localhost:8443',
         sslProxy: 'localhost:8888'
      }
    }
    

    Check your proxy software for the correct port.

    This works in Firefox and Chrome.

    0 讨论(0)
提交回复
热议问题