Skip to content

[Bug]: Chromium Playwright >= 1.49.0 stuck at loading pages #2820

Open
@pandel

Description

@pandel

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

Grafana: 11.6.0
OS: Debian 12
Browser: Chromium headless v131 (coming via playwright install chromium)

Grafana platform?
Docker

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions