From e8d044cb8dcb689cc066ffa18a1e3c9366f57902 Mon Sep 17 00:00:00 2001 From: Alexandra Borovova Date: Fri, 2 Jun 2023 17:37:25 +0200 Subject: [PATCH] fix: send capabilities property in session.new command (#10311) --- packages/puppeteer-core/src/common/bidi/Browser.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/puppeteer-core/src/common/bidi/Browser.ts b/packages/puppeteer-core/src/common/bidi/Browser.ts index 747cabaa006..2827d74964d 100644 --- a/packages/puppeteer-core/src/common/bidi/Browser.ts +++ b/packages/puppeteer-core/src/common/bidi/Browser.ts @@ -38,7 +38,7 @@ export class Browser extends BrowserBase { static async create(opts: Options): Promise { // TODO: await until the connection is established. try { - await opts.connection.send('session.new', {}); + await opts.connection.send('session.new', {capabilities: {}}); } catch {} await opts.connection.send('session.subscribe', {