Table of Contents

Class SetSensorOverrideEnabledCommandSettings

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

Overrides a platform sensor of a given type. If |enabled| is true, calls to Sensor.start() will use a virtual sensor as backend rather than fetching data from a real hardware sensor. Otherwise, existing virtual sensor-backend Sensor objects will fire an error event and new calls to Sensor.start() will attempt to use a real sensor instead.

public sealed class SetSensorOverrideEnabledCommandSettings : ICommand
Inheritance
SetSensorOverrideEnabledCommandSettings
Implements
Inherited Members

Properties

CommandName

Gets the name of the command.

[JsonIgnore]
public string CommandName { get; }

Property Value

string

Enabled

Gets or sets the enabled

[JsonPropertyName("enabled")]
public bool Enabled { get; set; }

Property Value

bool

Metadata

Gets or sets the metadata

[JsonPropertyName("metadata")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public SensorMetadata? Metadata { get; set; }

Property Value

SensorMetadata

Type

Gets or sets the type

[JsonPropertyName("type")]
public SensorType Type { get; set; }

Property Value

SensorType