Skip to content

Class: AmbiguousLocatorError

@termwright/driver


@termwright/driver / AmbiguousLocatorError

Defined in: driver/src/errors.ts:94

Strict-mode violation: a locator matched more than one node.

new AmbiguousLocatorError(message, candidates, diagnostics): AmbiguousLocatorError

Defined in: driver/src/errors.ts:95

string

readonly ResolvedTarget<LocatorDomain>[]

ErrorDiagnostics

AmbiguousLocatorError

TermwrightError.constructor

optional actionability?: ActionabilityExplanation

Defined in: driver/src/errors.ts:22

TermwrightError.actionability


readonly code: TermwrightErrorCode

Defined in: driver/src/errors.ts:20

TermwrightError.code


readonly diagnostics: ErrorDiagnostics

Defined in: driver/src/errors.ts:21

TermwrightError.diagnostics

toString(): string

Defined in: driver/src/errors.ts:38

Renders message + diagnostics the way test runners print failures.

string

TermwrightError.toString


withActionability(explanation): this

Defined in: driver/src/errors.ts:32

Attach the exact failed planner evaluation; never recomputed after state changes.

ActionabilityExplanation

this

TermwrightError.withActionability