Angular 如何在e2e中设置代理身份验证?

Angular 如何在e2e中设置代理身份验证?,angular,proxy,protractor,e2e-testing,angular-e2e,Angular,Proxy,Protractor,E2e Testing,Angular E2e,我需要使用e2e量角器在代理中验证的帮助。 我的量角器.conf.js的一部分: capabilities: { 'browserName': 'chrome', proxy: { proxyType: 'manual', httpProxy: 'http://xxx.xxx.xxx.xxx:port', } }, 这很好,但我的chrome会打开一个对话框窗口请求代理凭据。 我怎样才能避免呢?我想在gragrator.conf或其他角度文

我需要使用e2e量角器在代理中验证的帮助。 我的
量角器.conf.js
的一部分:

  capabilities: {
    'browserName': 'chrome',
    proxy: {
      proxyType: 'manual',
      httpProxy: 'http://xxx.xxx.xxx.xxx:port',
   }
  },
这很好,但我的chrome会打开一个对话框窗口请求代理凭据。
我怎样才能避免呢?我想在gragrator.conf或其他角度文件中设置auth。

请您尝试在browser.get中提供代理凭据。这是我的错;(