Skip to content

feat(api): add Screencast.stop() and enforce single listener - #39775

Merged
Yury Semikhatsky (yury-s) merged 1 commit into
microsoft:mainfrom
yury-s:feat-screencast-stop
Mar 19, 2026
Merged

feat(api): add Screencast.stop() and enforce single listener#39775
Yury Semikhatsky (yury-s) merged 1 commit into
microsoft:mainfrom
yury-s:feat-screencast-stop

Conversation

@yury-s

Copy link
Copy Markdown
Member

Summary

  • Add explicit screencast.stop() method as the canonical way to stop a screencast session
  • Replace the disposable pattern (disposable.dispose()) with page.screencast.stop() in tests and dashboard controller
  • Enforce single listener: screencast.start() now throws 'Screencast is already started' if called while a screencast is already active
  • Update docs and generated types accordingly

Replace the disposable pattern from screencast.start() with an explicit
screencast.stop() method. Only one listener is allowed at a time;
starting a second one throws 'Screencast is already started'.
@github-actions

Copy link
Copy Markdown
Contributor

Test results for "tests 1"

1 failed
❌ [playwright-test] › ui-mode-test-network-tab.spec.ts:327 › should copy network request @macos-latest-node20

5 flaky ⚠️ [chromium-library] › library/video.spec.ts:358 › screencast › should capture navigation `@chromium-ubuntu-22.04-arm-node20`
⚠️ [chromium-library] › library/trace-viewer.spec.ts:1223 › should display language-specific locators `@chromium-ubuntu-22.04-node20`
⚠️ [firefox-library] › library/inspector/cli-codegen-1.spec.ts:1080 › cli codegen › should not throw csp directive violation errors `@firefox-ubuntu-22.04-node20`
⚠️ [webkit-library] › library/screencast.spec.ts:75 › start reuses existing screencast when video recording is running `@webkit-ubuntu-22.04-node20`
⚠️ [webkit-library] › library/trace-viewer.spec.ts:1223 › should display language-specific locators `@webkit-ubuntu-22.04-node20`

38815 passed, 845 skipped


Merge workflow run.

@github-actions

Copy link
Copy Markdown
Contributor

Test results for "MCP"

5494 passed, 343 skipped


Merge workflow run.

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.

2 participants