Skip to content

Commit 1ceb3d6

Browse files
fix: activate bidi target after isolation
1 parent 5b0c074 commit 1ceb3d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/browser/existing-browser.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,7 @@ export class ExistingBrowser extends Browser {
450450
// eslint-disable-next-line @typescript-eslint/no-explicit-any
451451
const incognitoWindowId = windowIds.find(id => id.includes((page.target() as any)._targetId));
452452

453-
await this._session.switchToWindow(incognitoWindowId!);
453+
await Promise.all([this._session.switchToWindow(incognitoWindowId!), page.bringToFront()]);
454454
}
455455

456456
if (this._session.isBidi) {

0 commit comments

Comments
 (0)