Interface: SpatialRelationExpectation
@termwright/driver / SpatialRelationExpectation
Interface: SpatialRelationExpectation
Section titled “Interface: SpatialRelationExpectation”Defined in: driver/src/api.ts:757
@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”relation
Section titled “relation”
readonlyrelation:SpatialRelation
Defined in: driver/src/api.ts:758
target
Section titled “target”
readonlytarget:SemanticLocator|ScreenLocator
Defined in: driver/src/api.ts:759