Table of Contents

Class SetVirtualTimePolicyCommandSettings

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

Turns on virtual time for all frames (replacing real-time with a synthetic time source) and sets the current virtual time policy. Note this supersedes any previous time budget.

public sealed class SetVirtualTimePolicyCommandSettings : ICommand
Inheritance
SetVirtualTimePolicyCommandSettings
Implements
Inherited Members

Properties

Budget

If set, after this many virtual milliseconds have elapsed virtual time will be paused and a virtualTimeBudgetExpired event is sent.

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

Property Value

double?

CommandName

Gets the name of the command.

[JsonIgnore]
public string CommandName { get; }

Property Value

string

InitialVirtualTime

If set, base::Time::Now will be overridden to initially return this value.

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

Property Value

double?

MaxVirtualTimeTaskStarvationCount

If set this specifies the maximum number of tasks that can be run before virtual is forced forwards to prevent deadlock.

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

Property Value

long?

Policy

Gets or sets the policy

[JsonPropertyName("policy")]
public VirtualTimePolicy Policy { get; set; }

Property Value

VirtualTimePolicy