1

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

在日志记录中,我看到代理正在传递的指示,但它没有被用于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 || 噩梦版(如果相关) selenium-server-standalone-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" } } } },

4

0 回答 0