Interface: ActionEvent
@termwright/driver / ActionEvent
Interface: ActionEvent
Section titled “Interface: ActionEvent”Defined in: driver/src/api.ts:1013
One action the harness or a locator performed, reported after it finished — successfully or not.
This is what turns a recording into a story: the raw stream shows bytes going into the terminal, while these events say which call sent them, at what, and whether it worked.
Properties
Section titled “Properties”actionability?
Section titled “actionability?”
readonlyoptionalactionability?:ActionabilityExplanation
Defined in: driver/src/api.ts:1030
Exact failed planner evaluation, bound to the checkpoint that rejected the action.
actionId
Section titled “actionId”
readonlyactionId:string
Defined in: driver/src/api.ts:1015
Correlates this completion with the preceding ActionStartedEvent.
readonlyapi:string
Defined in: driver/src/api.ts:1017
Method that ran, e.g. 'click', 'press', 'resize'.
error?
Section titled “error?”
readonlyoptionalerror?:string
Defined in: driver/src/api.ts:1028
Failure reason: the TermwrightErrorCode when the action failed with a driver error, otherwise the error’s name. Never the full message — the message belongs to the thrown error, this field is for grouping.
observation?
Section titled “observation?”
readonlyoptionalobservation?:ObservationStamp
Defined in: driver/src/api.ts:1032
Atomic screen/tree identity at completion; trace consumers must not guess.
readonlyok:boolean
Defined in: driver/src/api.ts:1022
receipt?
Section titled “receipt?”
readonlyoptionalreceipt?:ActionReceipt
Defined in: driver/src/api.ts:1038
The exact plan and physical operations executed for a successful semantic action. This is the same receipt returned to the caller, not a diagnostic reconstruction performed after the action.
readonlyoptionalref?:LocatorRef
Defined in: driver/src/api.ts:1021
Ref of the target the action resolved, when it resolved one.
selector?
Section titled “selector?”
readonlyoptionalselector?:string
Defined in: driver/src/api.ts:1019
The locator’s description, for actions that had one.
timeMs
Section titled “timeMs”
readonlytimeMs:number
Defined in: driver/src/api.ts:1039