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().
Parameters
Section titled “Parameters”Page
The Playwright page instance.
locator
Section titled “locator”any
The input element to type into.
string
The text to type.
charDelayMs?
Section titled “charDelayMs?”number = 80
Delay between characters in video mode (default: 80ms). Ignored outside video mode.
Returns
Section titled “Returns”Promise<void>