🚀 Feature Request
It would be very useful if HAR recording could be integrated directly into the Playwright tracing workflow.
Proposed API
browser_context.tracing.start(
screenshots=True,
snapshots=True,
sources=True,
har=True,
)
Expected behavior
When har=True is enabled:
Record the network activity as a HAR alongside the trace.
Package the HAR inside the generated trace.zip instead of creating a separate file.
Allow the Trace Viewer to display and browse the HAR directly from the trace, without requiring users to extract the archive or open the HAR in an external tool.
Benefits
A single artifact (trace.zip) would contain everything needed to investigate a failed test.
No need to manage separate trace and HAR files.
Easier sharing of debugging artifacts between developers and QA engineers.
A unified debugging experience, combining UI interactions, DOM snapshots, screenshots, and complete network traffic in one place.
This would make Playwright traces even more valuable for debugging complex issues where both the browser state and the underlying network requests need to be analyzed together.
Example
No response
Motivation
ALL IN ONE
🚀 Feature Request
It would be very useful if HAR recording could be integrated directly into the Playwright tracing workflow.
Proposed API
browser_context.tracing.start(
screenshots=True,
snapshots=True,
sources=True,
har=True,
)
Expected behavior
When har=True is enabled:
Record the network activity as a HAR alongside the trace.
Package the HAR inside the generated trace.zip instead of creating a separate file.
Allow the Trace Viewer to display and browse the HAR directly from the trace, without requiring users to extract the archive or open the HAR in an external tool.
Benefits
A single artifact (trace.zip) would contain everything needed to investigate a failed test.
No need to manage separate trace and HAR files.
Easier sharing of debugging artifacts between developers and QA engineers.
A unified debugging experience, combining UI interactions, DOM snapshots, screenshots, and complete network traffic in one place.
This would make Playwright traces even more valuable for debugging complex issues where both the browser state and the underlying network requests need to be analyzed together.
Example
No response
Motivation
ALL IN ONE