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

789 B

Home > puppeteer > Protocol > Emulation > VirtualTimePolicy

Protocol.Emulation.VirtualTimePolicy type

advance: If the scheduler runs out of immediate work, the virtual time base may fast forward to allow the next delayed task (if any) to run; pause: The virtual time base may not advance; pauseIfNetworkFetchesPending: The virtual time base may not advance if there are any pending resource fetches.

Signature:

export type VirtualTimePolicy = ('advance' | 'pause' | 'pauseIfNetworkFetchesPending');