mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00
test: fix connectOverCDP with proxy on Windows (#10092)
This commit is contained in:
parent
32630e825a
commit
9dbf225afc
@ -425,7 +425,7 @@ playwrightTest('should use proxy with connectOverCDP', async ({ browserType, ser
|
|||||||
});
|
});
|
||||||
const port = 9339 + testInfo.workerIndex;
|
const port = 9339 + testInfo.workerIndex;
|
||||||
const browserServer = await browserType.launch({
|
const browserServer = await browserType.launch({
|
||||||
args: ['--remote-debugging-port=' + port]
|
args: ['--remote-debugging-port=' + port, ...(process.platform === 'win32' ? ['--proxy-server=some-value'] : [])]
|
||||||
});
|
});
|
||||||
try {
|
try {
|
||||||
const cdpBrowser = await browserType.connectOverCDP(`http://localhost:${port}/`);
|
const cdpBrowser = await browserType.connectOverCDP(`http://localhost:${port}/`);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user