Table of Contents

Class ScreenshotParams

Namespace
Selenium.WebDriver.BiDi.Cdp.HeadlessExperimental
Assembly
Selenium.WebDriver.BiDi.Cdp.dll

Encoding options for a screenshot.

public sealed record ScreenshotParams : IEquatable<ScreenshotParams>
Inheritance
ScreenshotParams
Implements
Inherited Members

Constructors

ScreenshotParams()

Encoding options for a screenshot.

public ScreenshotParams()

Properties

Format

Image compression format (defaults to png).

public string? Format { get; init; }

Property Value

string

OptimizeForSpeed

Optimize image encoding for speed, not for resulting size (defaults to false)

public bool? OptimizeForSpeed { get; init; }

Property Value

bool?

Quality

Compression quality from range [0..100] (jpeg and webp only).

public long? Quality { get; init; }

Property Value

long?