From ccb09acdbae0f2b07dbf41f00947bbc639f54f3f Mon Sep 17 00:00:00 2001 From: Dmitry Gozman Date: Fri, 11 Feb 2022 14:02:02 -0800 Subject: [PATCH] fix(remote): make playwright server work with firefox-beta (#12039) It is not considered "channel", but rather a "tool". --- packages/playwright-core/src/remote/playwrightServer.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/playwright-core/src/remote/playwrightServer.ts b/packages/playwright-core/src/remote/playwrightServer.ts index 836b91b7d0..05f9df709a 100644 --- a/packages/playwright-core/src/remote/playwrightServer.ts +++ b/packages/playwright-core/src/remote/playwrightServer.ts @@ -166,7 +166,7 @@ class Connection { const playwright = createPlaywright('javascript'); const socksProxy = await this._enableSocksProxyIfNeeded(playwright); const browser = await playwright[executable.browserName].launch(internalCallMetadata(), { - channel: executable.type === 'channel' ? executable.name : undefined, + channel: executable.type === 'browser' ? undefined : executable.name, }); // Close the browser on disconnect.