Skip to content

Conversation

@dgozman
Copy link
Contributor

@dgozman dgozman commented Jan 30, 2026

  • page.video() is always available.
  • video.path() is available right away upon recording, and throws when no video is being recorded.
  • No path option when stopping, use saveAs() instead.
  • No page did not produce any video frames error anymore - add a single white frame instead.
  • More tests around edge cases.
  • Simplify plumbing.

- Path is available once video file is created.
- No `path` option when stopping, use `saveAs()` instead.
- More tests around edge cases.
@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@dgozman dgozman changed the title chore: update video.start/stop api chore: update video api and implementation Jan 30, 2026
@dgozman dgozman force-pushed the chore-video-api-update branch from e952824 to ddf0ad2 Compare January 30, 2026 15:22
@github-actions
Copy link
Contributor

Test results for "tests 1"

4 failed
❌ [firefox-library] › library/browsercontext-events.spec.ts:103 › dialog event should work in popup @firefox-ubuntu-22.04-node20
❌ [firefox-library] › library/browsercontext-events.spec.ts:135 › dialog event should work in immediately closed popup @firefox-ubuntu-22.04-node20
❌ [firefox-page] › page/page-event-popup.spec.ts:61 › should be able to capture alert @firefox-ubuntu-22.04-node20
❌ [playwright-test] › update-aria-snapshot.spec.ts:669 › update-source-method › should overwrite source when specified in the config @macos-latest-node20

5 flaky ⚠️ [chromium-library] › library/inspector/recorder-api.spec.ts:120 › should type `@chromium-ubuntu-22.04-node20`
⚠️ [chromium-library] › library/popup.spec.ts:258 › should not throw when click closes popup `@chromium-ubuntu-22.04-node20`
⚠️ [firefox-library] › library/inspector/cli-codegen-1.spec.ts:1082 › cli codegen › should not throw csp directive violation errors `@firefox-ubuntu-22.04-node20`
⚠️ [playwright-test] › ui-mode-trace.spec.ts:384 › should reveal errors in the sourcetab `@macos-latest-node20`
⚠️ [playwright-test] › ui-mode-test-output.spec.ts:118 › should collapse repeated console messages for test `@ubuntu-latest-node22`

34256 passed, 662 skipped


Merge workflow run.

@github-actions
Copy link
Contributor

Test results for "MCP"

7 failed
❌ [chrome] › mcp/autowait.spec.ts:19 › racy navigation destroys context @mcp-windows-latest
❌ [chrome] › mcp/cli.spec.ts:49 › core › click button @mcp-windows-latest
❌ [chrome] › mcp/cli.spec.ts:63 › core › click link @mcp-windows-latest
❌ [chrome] › mcp/cli.spec.ts:283 › save as › screenshot @mcp-macos-15
❌ [chrome] › mcp/cli.spec.ts:298 › save as › screenshot --filename @mcp-macos-15
❌ [chrome] › mcp/test-debug.spec.ts:167 › test_debug (pause/snapshot/resume) @mcp-macos-15
❌ [chromium] › mcp/cli.spec.ts:220 › keyboard › press @mcp-macos-15

1 flaky ⚠️ [chrome] › mcp/cdp.spec.ts:24 › cdp server `@mcp-windows-latest`

3607 passed, 129 skipped


Merge workflow run.

// ... perform actions ...
await page.video().stop({ path: 'video.webm' });
await page.video().stop();
await page.video().saveAs('video.webm');
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a really unusual API for us, we recommend to always write 2 lines instead of passing path into one. screenshot({ path }), pdf({ path }), etc.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will follow up!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants