Skip to content

Commit 32f6a31

Browse files
authored
cherry-pick(#39953): fix(trace): redirect output to file via --filename (#39956)
1 parent c23fe70 commit 32f6a31

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • packages/playwright-core/src/tools/trace

packages/playwright-core/src/tools/trace/SKILL.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,8 @@ npx playwright trace snapshot <action-id> -- eval "el => el.getAttribute('data-t
125125
npx playwright trace snapshot <action-id> -- screenshot
126126

127127
# 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
128+
npx playwright trace snapshot <action-id> -- eval "document.body.outerHTML" --filename=page.html
129+
npx playwright trace snapshot <action-id> -- screenshot --filename=screenshot.png
130130
```
131131

132132
Only three browser commands are useful on a frozen snapshot: `snapshot`, `eval`, and `screenshot`.

0 commit comments

Comments
 (0)