Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

fix(electron): pass isLocal to connectOverCDP (#40293)

Pavel Feldman33422838502b
diff --git a/packages/playwright-electron/src/electron.ts b/packages/playwright-electron/src/electron.ts
index c32b8532bc..cd3143f63d 100644
--- a/packages/playwright-electron/src/electron.ts
+++ b/packages/playwright-electron/src/electron.ts
@@ -167,7 +167,7 @@ export class Electron implements api.Electron {
debuggerDisconnectPromise.then(() => worker.disconnect()).catch(() => {});
const chromeMatch = await Promise.race([chromeMatchPromise, waitForXserverError]);
- const browser = await chromium.connectOverCDP(chromeMatch[1], { timeout: progress.timeUntilDeadline() });
+ const browser = await chromium.connectOverCDP(chromeMatch[1], { timeout: progress.timeUntilDeadline(), isLocal: true });
app = new ElectronApplication(worker, browser, launchedProcess);
await progress.race(app._initialize());