Skip to main content

Class: MenuItemNotFoundError

Defined in: packages/component-driver-angular-material-v20/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-v20/src/errors/MenuItemNotFoundError.ts:11

Parameters​

label​

string

driver​

ComponentDriver<any>

Returns​

MenuItemNotFoundError

Overrides​

ItemNotFoundError.constructor

Properties​

label​

readonly label: string

Defined in: packages/component-driver-angular-material-v20/src/errors/MenuItemNotFoundError.ts:12

Inherited members (7)

Properties​

cause?​

optional cause?: 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​

readonly driverName: string

Defined in: packages/core/dist/index.d.mts:1595

Inherited from​

ItemNotFoundError.driverName


locatorDescription​

readonly locatorDescription: 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?​

optional stack?: 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()​

static isError(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