Const
Call this InteractorConstructor to initialize a menu item Interactor. The menu item interactor can be used to interact with items on the page and to assert on their state.
The menu item is located by the visible text on the item.
await MenuItem('Edit').click();await MenuItem({ id: 'edit', disabled: true }).exists(); Copy
await MenuItem('Edit').click();await MenuItem({ id: 'edit', disabled: true }).exists();
title
id
visible
true
disabled
false
click()
Call this InteractorConstructor to initialize a menu item Interactor. The menu item interactor can be used to interact with items on the page and to assert on their state.
The menu item is located by the visible text on the item.
Example
Filters
title
: string – Filter by titleid
: string – Filter by idvisible
: boolean – Filter by visibility. Defaults totrue
. See isVisible.disabled
: boolean – Filter by whether the item is disabled. Defaults tofalse
.Actions
click()
: Interaction – Click on the menu item