Interface: ScreenTextLocatorOptions
@termwright/driver / ScreenTextLocatorOptions
Interface: ScreenTextLocatorOptions
Section titled “Interface: 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.
Example
Section titled “Example”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();Extends
Section titled “Extends”Properties
Section titled “Properties”attributes?
Section titled “attributes?”
readonlyoptionalattributes?:Partial<CellAttributes>
Defined in: driver/src/api.ts:557
readonlyoptionalbg?:string
Defined in: driver/src/api.ts:556
exact?
Section titled “exact?”
readonlyoptionalexact?:boolean
Defined in: driver/src/api.ts:549
Inherited from
Section titled “Inherited from”
readonlyoptionalfg?:string
Defined in: driver/src/api.ts:555
Style predicates evaluated against terminal cells.
occurrence?
Section titled “occurrence?”
readonlyoptionaloccurrence?:number
Defined in: driver/src/api.ts:553