cdp-driver 0.3.0

Chrome DevTools Protocol client for AI agent browser control
Documentation
// @generated by `just generate-methods` from protocol/*.json.
// Do not edit by hand; edit xtask/ and regenerate.

//! This domain provides experimental commands only supported in headless
//! mode.
//!
//! Method names for the `HeadlessExperimental` domain, for use with
//! [`CdpClient::call`](crate::CdpClient::call).
//!
//! This domain is experimental and may change without notice.

/// 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.
///
/// Parameters:
/// - `frameTimeTicks`: number (optional)
/// - `interval`: number (optional)
/// - `noDisplayUpdates`: boolean (optional)
/// - `screenshot`: ScreenshotParams (optional)
///
/// Returns: `hasDamage`, `screenshotData`
pub const BEGIN_FRAME: &str = "HeadlessExperimental.beginFrame";

/// Disables headless events for the target.
///
/// Deprecated in the protocol.
pub const DISABLE: &str = "HeadlessExperimental.disable";

/// Enables headless events for the target.
///
/// Deprecated in the protocol.
pub const ENABLE: &str = "HeadlessExperimental.enable";