Class: MenuItemNotFoundError
Defined in: packages/component-driver-radix-v1/dist/index.d.mts:1530
Thrown when a label-based lookup (selectByLabel on a DropdownMenuDriver
or SelectDriver) finds no matching item. Shared by both drivers, mirroring
component-driver-mui-v7's reuse of the same error for its MenuDriver and
SelectDriver — both are "find the labelled item in an open list" operations.
Extends​
ItemNotFoundError
Constructors​
Constructor​
new MenuItemNotFoundError(
label,driver):MenuItemNotFoundError
Defined in: packages/component-driver-radix-v1/dist/index.d.mts:1532
Parameters​
label​
string
driver​
ComponentDriver<any>
Returns​
MenuItemNotFoundError
Overrides​
ItemNotFoundError.constructor
Properties​
label​
readonlylabel:string
Defined in: packages/component-driver-radix-v1/dist/index.d.mts:1531
Inherited members (7)
Properties​
cause?​
optionalcause?:unknown
Defined in: node_modules/.pnpm/typescript@6.0.3/node_modules/typescript/lib/lib.es2022.error.d.ts:24
Inherited from​
ItemNotFoundError.cause
driverName​
readonlydriverName:string
Defined in: packages/core/dist/index.d.mts:1595
Inherited from​
ItemNotFoundError.driverName
locatorDescription​
readonlylocatorDescription:string
Defined in: packages/core/dist/index.d.mts:1620
Inherited from​
ItemNotFoundError.locatorDescription
message​
message:
string
Defined in: node_modules/.pnpm/typescript@6.0.3/node_modules/typescript/lib/lib.es5.d.ts:1075
Inherited from​
ItemNotFoundError.message
name​
name:
string
Defined in: node_modules/.pnpm/typescript@6.0.3/node_modules/typescript/lib/lib.es5.d.ts:1074
Inherited from​
ItemNotFoundError.name
stack?​
optionalstack?:string
Defined in: node_modules/.pnpm/typescript@6.0.3/node_modules/typescript/lib/lib.es5.d.ts:1076
Inherited from​
ItemNotFoundError.stack
Methods​
isError()​
staticisError(error):error is Error
Defined in: node_modules/.pnpm/typescript@6.0.3/node_modules/typescript/lib/lib.esnext.error.d.ts:21
Indicates whether the argument provided is a built-in Error instance or not.
Parameters​
error​
unknown
Returns​
error is Error
Inherited from​
ItemNotFoundError.isError