Rayrun
← Back to Discord Forum

blank white page in the tracer view

Most of the times I get blank white page in the tracer view and it's pretty much hard for me to debug this issue. It worth mentioning that the same test steps, locators, etc work like a charm on another framework (testcafe). However I tried to migrate them to Pw but here they randomly fail.

How would you debug this? Sometimes the same test pass on pw as well, sometimes it doesn't throwing these kind of confusing errors.

Screenshot_2023-08-03_at_08.58.16.png

This thread is trying to answer question "How can I debug the issue of a blank white page appearing in the tracer view when using Pw?"

3 replies
vishwas2043

Hi All, I see the above issue very frequently these days. Any leads on why & what causes this. Causing lot of flakiness in our Test pipeline

Please file a bug with a reproduction if you experience any issues with one of our recent releases and v1.45.2 didn't fix it for you.

Answer

Debugging Blank White Page in Playwright Trace Viewer

Experiencing a blank white page in the trace viewer? Here's how you can debug it:

Step 1: Check Trace File Generation

First, ensure that your trace file is being generated correctly during your test execution. You should be using the correct API or command to generate this file.

Step 2: Validate Trace File

Next, open the saved trace using Playwright CLI or on trace.playwright.dev. If you can't open it, there might be an issue with the trace file itself. Make sure it's not corrupted and contains valid data.

Step 3: Try Different Trace Viewing Methods

If you're still seeing a blank white page when viewing traces, try other methods to open and view them. For instance, instead of using npx playwright show-trace, try uploading the trace file directly on trace.playwright.dev.

Step 4: Check CORS Rules

If you're trying to open remote traces from a URL, make sure that Cross-Origin Resource Sharing (CORS) rules aren't restricting access to those traces.

Step 5: Verify Compatibility

Ensure that your version of Playwright and Trace Viewer are compatible. An incompatible combination could result in issues like a blank white page appearing in the tracer view.

Step 6: Review Documentation

Refer to the official Playwright documentation on debugging tests and using Trace Viewer for more detailed information. If these steps don't resolve your issue, consider reaching out to Playwright's community forums or support channels for additional assistance.

For more insights on Playwright, check out these blog posts on detecting and handling flaky tests and writing efficient Playwright test scripts.

Related Discord Threads

TwitterGitHubLinkedIn
AboutQuestionsDiscord ForumBrowser ExtensionTagsQA Jobs

Rayrun is a community for QA engineers. I am constantly looking for new ways to add value to people learning Playwright and other browser automation frameworks. If you have feedback, email [email protected].