Lupa API Reference / commands/locator / TypeOptions
Interface: TypeOptions
Defined in: src/commands/locator.ts:271
Options for the type action.
Extends
Properties
delay?
optionaldelay?:number
Defined in: src/commands/locator.ts:275
Time to wait between keydown and keyup in milliseconds. Defaults to 0.
force?
optionalforce?:boolean
Defined in: src/commands/locator.ts:171
Whether to bypass the actionability checks. Defaults to false.
Inherited from
modifiers?
optionalmodifiers?: ("Alt"|"Control"|"ControlOrMeta"|"Meta"|"Shift")[]
Defined in: src/commands/locator.ts:205
Modifier keys to press. Ensures that only these modifiers are pressed during the operation, and then restores current modifiers back. If not specified, currently pressed modifiers are used. "ControlOrMeta" resolves to "Control" on Windows and Linux and to "Meta" on macOS.
Inherited from
timeout?
optionaltimeout?:number
Defined in: src/commands/locator.ts:161
Maximum time in milliseconds. Defaults to 0 - no timeout. The default value can be changed via actionTimeout option in the config, or by using the browserContext.setDefaultTimeout(timeout) or page.setDefaultTimeout(timeout) methods.