Skip to content

Lupa API Reference / commands/locator / PressOptions

Interface: PressOptions

Defined in: src/commands/locator.ts:327

Options for the press action.

Extends

Properties

delay?

optional delay?: number

Defined in: src/commands/locator.ts:331

Time to wait between keydown and keyup in milliseconds. Defaults to 0.


timeout?

optional timeout?: number

Defined in: src/commands/locator.ts:166

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.

Inherited from

TimeoutOption.timeout