A peek into ScreenShot This more advanced debugging features
We’ve just introduced a powerful solution that pairs Playwright’s built-in tracing with an AI-Assisted Debug Prompt. This feature captures all the underlying browser actions—navigations, screenshots, network calls, console logs—and packages them into:
By automatically surfacing relevant debugging information and funneling it into a concise AI prompt, you drastically reduce the time spent guessing “why did the test fail?” or “what's wrong with my site?” Now, you have immediate access to error details and a ready-to-use prompt that can be dropped into any AI assistant or bug tracking system.
This integrated approach leverages both Playwright’s advanced tracing capabilities and an AI-driven prompt generation. The trace captures low-level details about page load, console output, and navigation steps, while the AI prompt highlights the most critical aspects. Together, they offer developers a quick path from problem to resolution.
When a screenshot request fails, you’ll receive a comprehensive trace log and an AI prompt that spells out precisely where and why the breakdown occurred.
The AI Debug Prompt becomes an instant conversation starter with your QA team or an AI-based code assistant.
If your screenshot or test pipeline hits an issue, you can instantly see what failed. Quicker fixes, fewer production incidents, and a smoother user experience.
This feature is excellent not only for debugging screenshots but also for general website troubleshooting and testing workflows. It's helpful for debugging interactive elements, page loading issues, JavaScript errors, and performance bottlenecks. The combination of Trace Files, AI-generated prompts, and HAR files lets you pinpoint issues precisely, regardless of the screenshot process.
The HAR files allow you to analyze network requests, load times, resource bottlenecks, and API failures, making it valuable beyond mere screenshot debugging.
Ideal for automated test scenarios—helping developers instantly see why tests fail, whether due to slow load times, missing selectors, or JavaScript errors.
Automatically logs failures, producing trace zips and error summaries for instant issue identification and resolution.
Quickly pinpoint issues like timeouts or incorrect selectors, speeding up bug fixes.
Identify slow load times or unnecessary network calls through combined HAR and trace file analysis.
npm install playwright
npx playwright show-trace trace_12345.zip
capture_har=true
for each request.With AI-Assisted Debug Prompts and robust tracing, you can quickly and precisely diagnose:
The result: dramatically faster and more insightful debugging workflows—making your service stand out from the pack.