我想通过外部代理传递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)
"helpers": {
"WebDriverIO": {
"url": "https://caworkcompcoverage.com",
"browser": "chrome",
"desiredCapabilities": {
"proxy": {
"proxyType": "manual",
"httpProxy": "http://proxy:8010",
"socksUsername": "my username",
"socksPassword": "my password"
}
}
}
},