Table of Contents

Class SetEmulatedMediaCommandSettings

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

Emulates the given media type or media feature for CSS media queries.

public sealed class SetEmulatedMediaCommandSettings : ICommand
Inheritance
SetEmulatedMediaCommandSettings
Implements
Inherited Members

Properties

CommandName

Gets the name of the command.

[JsonIgnore]
public string CommandName { get; }

Property Value

string

Features

Media features to emulate.

[JsonPropertyName("features")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public MediaFeature[]? Features { get; set; }

Property Value

MediaFeature[]

Media

Media type to emulate. Empty string disables the override.

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

Property Value

string