Interface: ErrorDiagnostics
@termwright/driver / ErrorDiagnostics
Interface: ErrorDiagnostics
Section titled “Interface: ErrorDiagnostics”Defined in: driver/src/api.ts:1176
@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();Properties
Section titled “Properties”candidates?
Section titled “candidates?”
readonlyoptionalcandidates?: readonlyResolvedTarget<LocatorDomain>[]
Defined in: driver/src/api.ts:1179
screenExcerpt?
Section titled “screenExcerpt?”
readonlyoptionalscreenExcerpt?:string
Defined in: driver/src/api.ts:1177
semanticTree
Section titled “semanticTree”
readonlysemanticTree:boolean
Defined in: driver/src/api.ts:1178
suggestion?
Section titled “suggestion?”
readonlyoptionalsuggestion?:string
Defined in: driver/src/api.ts:1180