diff --git a/src/server/browserContext.ts b/src/server/browserContext.ts index 21d95c0206422..0d0cfb43f2afe 100644 --- a/src/server/browserContext.ts +++ b/src/server/browserContext.ts @@ -162,7 +162,7 @@ export abstract class BrowserContext extends SdkObject { } const binding = new PageBinding(name, playwrightBinding, needsHandle, 'main'); this._pageBindings.set(identifier, binding); - this._doExposeBinding(binding); + await this._doExposeBinding(binding); } async grantPermissions(permissions: string[], origin?: string) {