Skip to content

Interface: SelectionApi

@termwright/driver


@termwright/driver / SelectionApi

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

@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();

clear(): void

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

void


copy(): string

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

string


selectCells(range): void

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

{ column: number; row: number; }

number

number

{ column: number; row: number; }

number

number

void