Table of Contents

Class AddScreenCommandSettings

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

Add a new screen to the device. Only supported in headless mode.

public sealed class AddScreenCommandSettings : ICommand
Inheritance
AddScreenCommandSettings
Implements
Inherited Members

Properties

ColorDepth

Specifies the screen's color depth in bits. Default is 24.

[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. Default is 1.

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

Property Value

double?

Height

The height of the screen in pixels.

[JsonPropertyName("height")]
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. Default is none.

[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")]
public long Left { get; set; }

Property Value

long

Rotation

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

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

Property Value

long?

Top

Offset of the top edge of the screen in pixels.

[JsonPropertyName("top")]
public long Top { get; set; }

Property Value

long

Width

The width of the screen in pixels.

[JsonPropertyName("width")]
public long Width { get; set; }

Property Value

long

WorkAreaInsets

Specifies the screen's work area. Default is entire screen.

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

Property Value

WorkAreaInsets