Skip to content

Interface: SemanticLocatorFilterOptions

@termwright/driver


@termwright/driver / SemanticLocatorFilterOptions

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

@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 has?: SemanticLocator

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


readonly optional hasNot?: SemanticLocator

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


readonly optional hasText?: string | RegExp

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