Skip to content

demoType

demoType(page, locator, text, charDelayMs?): Promise<void>

Defined in: video.ts:59

Type text character-by-character with natural timing.

In video mode, clicks the element and types each character with a delay, simulating realistic human typing. When not in video mode, fills the input instantly using locator.fill().

Page

The Playwright page instance.

any

The input element to type into.

string

The text to type.

number = 80

Delay between characters in video mode (default: 80ms). Ignored outside video mode.

Promise<void>