HeadlessExperimental
This domain provides experimental commands only supported in headless mode.
Types
Link copied to clipboard
@Serializable
Link copied to clipboard
Link copied to clipboard
@Serializable
Encoding options for a screenshot.
Functions
Link copied to clipboard
suspend fun beginFrame(args: HeadlessExperimental.BeginFrameParameter, mode: CommandMode = CommandMode.DEFAULT): HeadlessExperimental.BeginFrameReturn
suspend fun beginFrame(frameTimeTicks: Double? = null, interval: Double? = null, noDisplayUpdates: Boolean? = null, screenshot: HeadlessExperimental.ScreenshotParams? = null): HeadlessExperimental.BeginFrameReturn
Sends a BeginFrame to the target and returns when the frame was completed. Optionally captures a screenshot from the resulting frame. Requires that the target was created with enabled BeginFrameControl. Designed for use with --run-all-compositor-stages-before-draw, see also https://goo.gle/chrome-headless-rendering for more background.
Link copied to clipboard
Disables headless events for the target.
Link copied to clipboard
Enables headless events for the target.