Closed 22mSqRi closed 5 days ago
I can repro, and its caused by the following upstream Chromium bug: https://crbug.com/1310057
Would be amazing if you could star ⭐ it on their side, then it's getting prioritized higher!
As a workaround, you can do the following:
const config: PlaywrightTestConfig = {
use: {
proxy: {
server: 'xxxxx',
username: 'xxxxx',
password: 'xxxxx',
},
// workaround for: https://crbug.com/1310057
launchOptions: {
proxy: {
server: 'per-context',
},
},
},
}
playwright version: 1.39.0
I solved the error using the following configuration:
launchOptions: { args: ['--proxy-server=xxxxx'] }
Note: Created a fix for it upstream https://chromium-review.googlesource.com/c/chromium/src/+/5688851 - keeping this issue open until we remove our per-context
downstream hacks.
I need test on authentication proxy, so I wrote proxy setting in
playwright.config.ts
. Proxy setting is successed on firefox, but chronium still have proxy error. What should I to do?playwright version: 1.25.1
playwright.config.ts
chronium error message