Table of Contents

Class ScreenshotParams

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

Encoding options for a screenshot.

public sealed class ScreenshotParams
Inheritance
ScreenshotParams
Inherited Members

Properties

Format

Image compression format (defaults to png).

[JsonPropertyName("format")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public ScreenshotParamsFormatValues? Format { get; set; }

Property Value

ScreenshotParamsFormatValues?

OptimizeForSpeed

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

[JsonPropertyName("optimizeForSpeed")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public bool? OptimizeForSpeed { get; set; }

Property Value

bool?

Quality

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

[JsonPropertyName("quality")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public long? Quality { get; set; }

Property Value

long?