We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5b0c074 + 1ceb3d6 commit 94856b0Copy full SHA for 94856b0
src/browser/existing-browser.ts
@@ -450,7 +450,7 @@ export class ExistingBrowser extends Browser {
450
// eslint-disable-next-line @typescript-eslint/no-explicit-any
451
const incognitoWindowId = windowIds.find(id => id.includes((page.target() as any)._targetId));
452
453
- await this._session.switchToWindow(incognitoWindowId!);
+ await Promise.all([this._session.switchToWindow(incognitoWindowId!), page.bringToFront()]);
454
}
455
456
if (this._session.isBidi) {
0 commit comments