Open jeff-an opened 1 week ago
Minmal reproduction: https://github.com/mxschmitt/playwright-shadow-dom-repro/tree/jeff/ext
It isn't related to https://github.com/microsoft/playwright/issues/33330 since removing the Emulation.setFocusEmulationEnabled
call does't fix it in that case. Also running it headed
doesn't make it work
Version
1.44.1, 1.48.2
Steps to reproduce
Minimal reproduction is available in this pull request in my public demo repository: https://github.com/jeff-an/playwright-shadow-dom-repro/pull/1. The main Playwright script is here while the github action workflow is defined here.
The failure can be seen in the Github actions failure, which only attempts to take a screenshot of Google.com but fails.
The Chrome extension being used is the popular https://darkreader.org/. It works totally fine on my official Chrome build and on Chromium when ran on my Mac OS laptop. However, it does not work when running on Linux.
Interestingly this flow used to work last week and I don't think I changed the Playwright version used or any dependencies. Maybe something on the default Github Actions runners changed?
DEBUG=pw:api
just says screenshot started and then screenshot failed with nothing useful in between.Expected behavior
Screenshot should succeed within a reasonable time.
Actual behavior
Screenshot fails after 3 seconds. Tried the following:
Additional context
No response
Environment