Table of Contents

Class BeginFrameCommandResponse

Namespace
OpenQA.Selenium.DevTools.V148.HeadlessExperimental
Assembly
Selenium.WebDriver.dll

Response for 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.

public sealed class BeginFrameCommandResponse : ICommandResponse<BeginFrameCommandSettings>, ICommandResponse
Inheritance
BeginFrameCommandResponse
Implements
Inherited Members
Extension Methods

Properties

HasDamage

Whether the BeginFrame resulted in damage and, thus, a new frame was committed to the display. Reported for diagnostic uses, may be removed in the future.

[JsonPropertyName("hasDamage")]
public bool HasDamage { get; set; }

Property Value

bool

ScreenshotData

Base64-encoded image data of the screenshot, if one was requested and successfully taken.

[JsonPropertyName("screenshotData")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public string? ScreenshotData { get; set; }

Property Value

string