Table of Contents

Class UpdateScreenCommandSettings

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

Updates specified screen parameters. Only supported in headless mode.

public sealed class UpdateScreenCommandSettings : ICommand
Inheritance
UpdateScreenCommandSettings
Implements
Inherited Members

Properties

ColorDepth

Specifies the screen's color depth in bits.

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

Property Value

long?

CommandName

Gets the name of the command.

[JsonIgnore]
public string CommandName { get; }

Property Value

string

DevicePixelRatio

Specifies the screen's device pixel ratio.

[JsonPropertyName("devicePixelRatio")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public double? DevicePixelRatio { get; set; }

Property Value

double?

Height

The height of the screen in pixels.

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

Property Value

long?

IsInternal

Indicates whether the screen is internal to the device or external, attached to the device. Default is false.

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

Property Value

bool?

Label

Specifies the descriptive label for the screen.

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

Property Value

string

Left

Offset of the left edge of the screen in pixels.

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

Property Value

long?

Rotation

Specifies the screen's rotation angle. Available values are 0, 90, 180 and 270.

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

Property Value

long?

ScreenId

Target screen identifier.

[JsonPropertyName("screenId")]
public string ScreenId { get; set; }

Property Value

string

Top

Offset of the top edge of the screen in pixels.

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

Property Value

long?

Width

The width of the screen in pixels.

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

Property Value

long?

WorkAreaInsets

Specifies the screen's work area.

[JsonPropertyName("workAreaInsets")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public WorkAreaInsets? WorkAreaInsets { get; set; }

Property Value

WorkAreaInsets