Playwright has a nifty feature called the [Trace Viewer][0], which you
can use to observe the state of the page at any given point during the
browsing session. This should make troubleshooting failures a lot
easier.
[0]: https://playwright.dev/python/docs/trace-viewer-intro