fix: send capabilities property in session.new command (#10311)

This commit is contained in:
Alexandra Borovova 2023-06-02 17:37:25 +02:00 committed by GitHub
parent 036c4b443f
commit e8d044cb8d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -38,7 +38,7 @@ export class Browser extends BrowserBase {
static async create(opts: Options): Promise<Browser> {
// 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', {