Skip to content

ClickBeforeFillOption

ClickBeforeFillOption = CursorMoveTimingOption & object

Defined in: types.ts:319

Options for the automatic click that precedes a fill, pressSequentially, check, uncheck, setChecked, or selectOption.

These methods already click the locator first (with animated cursor movement), then begin the action immediately. For fill and pressSequentially, that default pre-typing cursor move/click is skipped when the target input is already focused. Pass this as click when you want to customize or force that built-in click timing. No extra zoom-pan sleep is inserted — the cursor-move animation covers it.

To control where on the element the cursor moves, pass position at the top level of the method’s options (not inside click).

optional beforeClickPause?: number

Pause between cursor arrival and click in ms (default: 50).

optional moveEasing?: Easing

optional noWaitAfter?: boolean

optional postClickMove?: PostClickMove

optional postClickPause?: number