Class: MenuItemNotFoundError
Defined in: packages/component-driver-angular-material-v21/src/errors/MenuItemNotFoundError.ts:10
Thrown when a label-based selection (MenuDriver.selectByLabel,
SelectDriver.selectByLabel) finds no item with the requested label —
mirrors the mui-v7 error of the same name.
Extends​
ItemNotFoundError
Constructors​
Constructor​
new MenuItemNotFoundError(
label,driver):MenuItemNotFoundError
Defined in: packages/component-driver-angular-material-v21/src/errors/MenuItemNotFoundError.ts:11
Parameters​
label​
string
driver​
ComponentDriver<any>
Returns​
MenuItemNotFoundError
Overrides​
ItemNotFoundError.constructor
Properties​
label​
readonlylabel:string
Defined in: packages/component-driver-angular-material-v21/src/errors/MenuItemNotFoundError.ts:12
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