Skip to content

demoPause

demoPause(page, ms?): Promise<void>

Defined in: video.ts:83

Pause for a specified duration (video mode only).

In video mode, waits for the given number of milliseconds, useful for giving viewers time to see the current state. When not in video mode, returns immediately with no delay.

Page

The Playwright page instance.

number = 2000

Duration to pause in milliseconds (default: 2000ms). Ignored outside video mode.

Promise<void>