Skip to content

Interface: ScreenTextLocatorOptions

@termwright/driver


@termwright/driver / ScreenTextLocatorOptions

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

@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 attributes?: Partial<CellAttributes>

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


readonly optional bg?: string

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


readonly optional exact?: boolean

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

TextLocatorOptions.exact


readonly optional fg?: string

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

Style predicates evaluated against terminal cells.


readonly optional occurrence?: number

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