Registers a handler called for every raw video frame.
Async function or sync function receiving each frame.
Handlers receive a ScreencastFrame with a JPEG buffer and a
monotonic timestamp. Multiple handlers can be registered; they are called
in registration order. Errors from handlers are caught and logged at
debug level (non-fatal). Calling this method starts
page.screencast.start({ onFrame }) if it has not been started yet.
Enables DOM action annotations in the video.
Optionaloptions: ShowActionsOptionsOptional display configuration.
Promise that resolves once actions are enabled.
Marks a new chapter in the video at the current timestamp.
Human-readable chapter title shown in the video overlay.
Promise that resolves once the chapter marker is applied.
Enables or disables the UI5 control-tree overlay on video frames.
Optionalenabled: booleantrue to enable, false to disable (default).
The
screencastfixture API exposed to test bodies.Remarks
All methods are safe to call even when
page.screencastis not available in older Playwright versions — they degrade gracefully with a debug log.Intent
Provide structured video recording with AI-first frame streaming
Capability
ui5.inspect
Example