HeadlessExperimentalDomain

This domain provides experimental commands only supported in headless mode.

Official doc

Functions

Link copied to clipboard
inline suspend fun beginFrame(optionalArgs: BeginFrameRequest.Builder.() -> Unit = {}): BeginFrameResponse

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
suspend fun disable(): DisableResponse

Disables headless events for the target.

Link copied to clipboard
suspend fun enable(): EnableResponse

Enables headless events for the target.