Skip to content

Commit

Permalink
fix: bring to front condition in _setPage (#4173)
Browse files Browse the repository at this point in the history
  • Loading branch information
kobenguyent authored Feb 6, 2024
1 parent bfc3450 commit dec1b88
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/helper/Playwright.js
Original file line number Diff line number Diff line change
Expand Up @@ -750,9 +750,7 @@ class Playwright extends Helper {
});
this.context = await this.page;
this.contextLocator = null;
if (this.options.browser === 'chrome') {
await page.bringToFront();
}
await page.bringToFront();
}

/**
Expand Down

0 comments on commit dec1b88

Please sign in to comment.