Skip to content

Interface: LocatorDragOptions

@termwright/driver


@termwright/driver / LocatorDragOptions

Defined in: driver/src/api.ts:564

@termwright/driver — PTY + VT sessions, locators, actions and waits.

The normative public API lives in api.ts; this module is the only entry point and re-exports the types from there together with their runtime implementations.

import { launchTerminal } from '@termwright/driver';
const terminal = await launchTerminal({ command: ['node', 'app.js'] });
await terminal.waitForText('Ready');
await terminal.getByRole('button', { name: 'Approve' }).activate();
await terminal.close();

readonly optional modifiers?: readonly MouseModifier[]

Defined in: driver/src/api.ts:307

MouseModifierOptions.modifiers


readonly optional path?: readonly MousePoint[]

Defined in: driver/src/api.ts:568

Explicit viewport-cell path. The resolved destination is appended.


readonly optional steps?: number

Defined in: driver/src/api.ts:566

Number of interpolated pointer moves. Defaults to the cell distance.


readonly optional timeout?: number

Defined in: driver/src/api.ts:561

WaitOptions.timeout