Skip to content

Commit 94856b0

Browse files
Merge pull request #1163 from gemini-testing/TRIVIAL.bidi_isolation_activate_target
fix: activate bidi target after isolation
2 parents 5b0c074 + 1ceb3d6 commit 94856b0

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)