We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c23fe70 commit 32f6a31Copy full SHA for 32f6a31
1 file changed
packages/playwright-core/src/tools/trace/SKILL.md
@@ -125,8 +125,8 @@ npx playwright trace snapshot <action-id> -- eval "el => el.getAttribute('data-t
125
npx playwright trace snapshot <action-id> -- screenshot
126
127
# Redirect output to a file
128
-npx playwright trace snapshot <action-id> -- eval "document.body.outerHTML" > page.html
129
-npx playwright trace snapshot <action-id> -- screenshot > screenshot.png
+npx playwright trace snapshot <action-id> -- eval "document.body.outerHTML" --filename=page.html
+npx playwright trace snapshot <action-id> -- screenshot --filename=screenshot.png
130
```
131
132
Only three browser commands are useful on a frozen snapshot: `snapshot`, `eval`, and `screenshot`.
0 commit comments