playwright: [BUG] Black Screen in video and trace on mobile
Context:
- Playwright Version: 1.18.1
- Operating System: bitbucket pipelines + running with playwright official image
mcr.microsoft.com/playwright:v1.18.1-focal - Browser: [e.g. All, Chromium, Firefox, WebKit]
- Extra: project config
{
name: 'Mobile Safari',
use: {
...devices['iPhone 13 Pro']
}
}
When I run the tests inside bitbucket pipelines after a few seconds the video is turning to a black screen (sometimes it’s totally black sometimes you can see parts of the screen)
It doesn’t happen when on Desktop Chrome
About this issue
- Original URL
- State: open
- Created 2 years ago
- Reactions: 14
- Comments: 21 (2 by maintainers)
Any updates on this?
We also came across this problem recently with v1.32.1 using the provided docker image. After some experimentation we found that by setting
isMobile: falsefor a given webkit device we would no longer experience the issue. To put it another way this project in config would reproduce the blank screen in HTML report/trace:And this modification would resolve the issue:
Hopefully this info is of some use in helping to track down the issue and as a temporary workaround for folks encountering the issue.
Same issue.
I get the same problem on Macbook M1, running following:
My playwright.config.ts (basically the one from the docs) with only one project left (the problem one):
My test:
As a result I get completely transaparent page as a screenshot. Adding
isMobile: falseto the project helps, but it shouldn’t be like that, should it?I’m having a very similar issue when running mobile safari tests in the CI (linux distro). I can’t recreate the issue locally when running on macOs 11.4. The issue seems to crop up when toasts or popovers are involved. I can share a couple of traces with videos included but prefer not to post it publicly on here.
Playwright gets into a loop doing the following, but the video shows that the app seems to have a gone out of the bounds recording box. (very similar to what dz1dz1on has posted above)
Playwright 1.27.1
I’m facing the same issue here. Usually the page gets black when scrolling down to take a locator screenshot, for exemple, when it’s below the current/initial viewport. But sometimes it works, so it is intermittent. Looks like it happens more often when running multiple tests with more workers (I usually use 4 or 5 workers).
I’m using: