screencast
Stream the page to your code (Playwright page.screencast).
Use it for: Watching or recording a headless page from your own code as a stream of JPEG frames, for debugging dashboards or human review, without a full live view.
Browsers: Google Chrome, Microsoft Edge, Brave, Opera, Naver Whale, Yandex Browser, Chromium, Patchright, Camoufox, Firefox, WebKit.
Details
- Type:
boolean - Default: false
- Example:
{"screencast":true}
Not a launch option: the generated program calls page.screencast.start({ onFrame }), which sends JPEG frames of the page to your code over the session's own connection whenever it changes — forward them to your UI, a websocket or a file. Needs a Playwright 1.60+ client.
View-only and only for the client that drives the page. With "cdp": true, use CDP Page.startScreencast instead. To watch from somewhere else — or take control — see live_view and Live view.
Used in
- Case 27: Watch it live: streaming a remote browser to your code, frame by frame
- Live view: stream the page to your code
All options: launch options.