diff --git a/src/common/Page.ts b/src/common/Page.ts index f7e8a769efb41..9cafd838c5fc0 100644 --- a/src/common/Page.ts +++ b/src/common/Page.ts @@ -770,7 +770,8 @@ export class Page extends EventEmitter { const {timeout = this.#timeoutSettings.timeout()} = options; const promise = createDeferredPromiseWithTimer( - `Waiting for \`FileChooser\` failed: ${timeout}ms exceeded` + `Waiting for \`FileChooser\` failed: ${timeout}ms exceeded`, + timeout ); this.#fileChooserPromises.add(promise); return promise.catch(error => {