'How does Playwright tracing file compare to HAR file?
Playwright lets you record HAR, but there's also context.tracing.start
. The latter also lets you capture screenshots to the resulting ZIP, but HAR file seems to be better supported outside of Playwright. So what is the difference, are trace files basically HAR files with screenshots, or is there any info missing that would be found in a HAR?
Solution 1:[1]
Playwright Tracing enables you to see screenshots, DOM Snapshots, console logs, Playwright method calls etc. These can be viewed using the Playwright trace viewer.
HAR is a file specification which supports only network requests, these can be viewed e.g. in Chrome DevTools.
See here for more information about the trace viewer: https://playwright.dev/docs/next/trace-viewer
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | Max Schmitt |