-
Notifications
You must be signed in to change notification settings - Fork 981
[Bug]: Chromium Playwright >= 1.49.0 stuck at loading pages #2820
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
Comments
Please, could you try using the new headless mode? https://playwright.dev/python/docs/browsers#chromium-new-headless-mode
Optionally, install with this
|
@ltsuda Did you ever take a look at my test script that I provided? I did already!
And that is exactly the problem. Don't know why I should test things which lead exactly to my bug report... |
is not the same as
I was hitting this same condition and using the "chromium" channel fixed the issue. |
@aspiringVegetarian OH WOW! I did read everything about browser selection again in the Playwright Docs but did absolutely not recognize this to be something different. And as I only installed "chromium" via MANY MANY THANKS! And my apologies for being a bit rude. The whole problem was sooo frustrating at times! There should be definitely a hint or something in the docs that people can avoid potential problems using this |
This still looks like a bug to me. I tried to repro but for me it is always stuck at I created a Grafana instance via this: https://grafana.com/docs/grafana/latest/setup-grafana/installation/docker/ - did |
@mxschmitt If it is stuck at If you chose to use my testscript, then simply replace the line
with
You can find more about Grafana standard page element selectors here, if that does not work with your Grafana version: |
My understanding of the new chromium headless mode is that it is opt-in... https://playwright.dev/python/docs/browsers#chromium-new-headless-mode So headless: true uses the "old" headless mode - chromium-headless-shell - while headless: true & channel: 'chromium' uses the "new" headless mode? |
Version
Works: up to 1.48.0, does not work: anything newer
Steps to reproduce
I am capturing Grafana panels via Playwright Chromium in headless mode and noticed, that beginning with Playwright>=1.49.0, which uses the newest Chromium tech (microsoft/playwright#33566), I am no longer able to acquire Grafana's login page or anything else.
Expected behavior
Headless browser loads Grafana pages and takes screenshot.
Did this work before?
Yes, up to Playwright version 1.48.0 flawlessly.
Actual behavior
Use my test script. With >=1.49 it will stop at "Enter username".
Additional context
How do we reproduce it?
pip install playwright==1.49.0
playwright install-deps && playwright install chromium
Use added Python file to test: python playwright_browser_test.py -u -p -url
i.e.: python playwright_browser_test.py -u admin -p admin -url http://my.instance.url:3000
With Playwright<1.49.0 the script will go through a complete login process and return with the headless browser closed. With >=1.49 it will stop at "Enter username".
playwright_browser_test.py.txt
I did also check with the people from Grafana and it seems they ran into the same issue: grafana/grafana#103483
Environment
The text was updated successfully, but these errors were encountered: