CodeceptJS不接受代理设置

时间:2018-02-27 19:10:25

标签: selenium proxy webdriver-io codeceptjs

我想通过外部代理传递CodeceptJS请求。我按照docs中的说明进行操作。

在日志记录中,我看到代理正在传递,但selenium-standalone没有使用代理请求。

10:56:25.020 INFO - Found handler: org.openqa.selenium.remote.server.commandhandler.BeginSession@7d95346a
10:56:25.020 INFO - /session: Executing POST on /session (handler: BeginSession)
10:56:25.024 INFO - Capabilities are: Capabilities {browserName: chrome, handlesAlerts: true, javascriptEnabled: true, locationContextEnabled: true, loggingPrefs: org.openqa.selenium.logging..., proxy: {httpProxy: http://<myproxy>..., proxyType: manual, socksPassword: <my password>..., socksUsername: <my username>}, requestOrigins: {name: webdriverio, url: http://webdriver.io, version: 4.10.2}, rotatable: true}
10:56:25.024 INFO - Capabilities {browserName: chrome, handlesAlerts: true, javascriptEnabled: true, locationContextEnabled: true, loggingPrefs: org.openqa.selenium.logging..., proxy: {httpProxy: http://<myproxy>..., proxyType: manual, socksPassword: <my password>..., socksUsername: <my username>}, requestOrigins: {name: webdriverio, url: http://webdriver.io, version: 4.10.2}, rotatable: true} matched class org.openqa.selenium.remote.server.ServicedSession$Factory (provider: org.openqa.selenium.chrome.ChromeDriverService)
  • CodeceptJS版本:1.1.5
  • NodeJS版本:8.0
  • 操作系统:mac
  • 量角器|| WebDriverIO ||梦魇版(如果相关) 硒 - 服务器 - 独立-3.9.1
  • 配置文件:

"helpers": { "WebDriverIO": { "url": "https://caworkcompcoverage.com", "browser": "chrome", "desiredCapabilities": { "proxy": { "proxyType": "manual", "httpProxy": "http://proxy:8010", "socksUsername": "my username", "socksPassword": "my password" } } } },

0 个答案:

没有答案