puppeteer/new-docs/puppeteer.protocol.emulation.setvirtualtimepolicyrequest.md
2020-07-13 14:01:35 +01:00

1.7 KiB

Home > puppeteer > Protocol > Emulation > SetVirtualTimePolicyRequest

Protocol.Emulation.SetVirtualTimePolicyRequest interface

Signature:

export interface SetVirtualTimePolicyRequest 

Properties

Property Type Description
budget number If set, after this many virtual milliseconds have elapsed virtual time will be paused and a virtualTimeBudgetExpired event is sent.
initialVirtualTime Network.TimeSinceEpoch If set, base::Time::Now will be overriden to initially return this value.
maxVirtualTimeTaskStarvationCount integer If set this specifies the maximum number of tasks that can be run before virtual is forced forwards to prevent deadlock.
policy VirtualTimePolicy
waitForNavigation boolean If set the virtual time policy change should be deferred until any frame starts navigating. Note any previous deferred policy change is superseded.