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.
1 parent 5b0c074 commit 1ceb3d6Copy full SHA for 1ceb3d6
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