-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature] Ability to skip/or close the page opened by browser.launch
#981
Comments
Thanks for the report. We are going to get there, but it'll take some time. In order to implement it we need to introduce a new mode in all the browsers that does not open the default profile on browser startup. |
Should be fixed by now in Chromium and WebKit. Still has an extra tab in FF, but that is probably Ok for now. |
Yeah, extra tab is less annoying than extra window. |
@DavertMik It's merged so you can get it before the next release by installing playwright@next |
Will this ever be implemented in FF? |
This issue still exist in 1.17.1 @pavelfeldman |
This issue still exists. As I am trying to run tests on default chrome browser with 1.22 Playwright version and it is opening two windows.(one is blank and another is loading my test site). |
Still exists - two windows with Firefox. |
If you don't add the configs in
and only open the browser with |
Still exists - two windows with Chrome. 1.28.1 |
I'm still seeing this with Chromium Version 112.0.5615.29 (Developer Build) (arm64) one window opens and stays blank, the other is behind it and runs my tests. |
same problem with firefox, chromium |
It's weird this got closed, even issues still persists. Any thoughts? @pavelfeldman |
The issue still persists for all built-in browsers, one browser window is opened with the expected URL, and immediately the new one is blank and active so all tests are false-failed. |
yes this issue still exists, m new to playwright, any solution? |
I believe this issue is still around. |
In python I fix it like this: browser = playwright.firefox.launch()
page = browser.pages[0]
# OR
page = browser.new_page()
browser.pages[0].close() |
I'm also facing this issue, additionally, when one suite execution is completed, another suite cannot go to the URL even though they can be running as a single properly. |
wondering why pavelfeldman is not responding to peoples comment!! lol |
Hello all, Any update on the fix for this issue?thanks |
This is still an issue when I use BrowserContext instead of the standard Browser to initialise the browser on Java Playwright version:
`` |
Hello!
At least the empty window doesn't bother me anymore in tests and reports. |
"initializePage" Function fixed my issue. StorageStatePath = auth.json |
Version: d367a2e (current master)
When running this script it opens two pages (and I think two contexts)
chromium.launch
context.newPage
I would like to close the page opened by
chromium.launch
, or skip opening it in the first place. Since it is confusing to have a blank page that is not in use (https://github.com/qawolf/qawolf/issues/395).The text was updated successfully, but these errors were encountered: