Menuvariable
Call this InteractorConstructor to initialize a menu Interactor. The menu interactor can be used to interact with menus
on the page and to assert on their state.
The menu is located by the aria-label attribute or the visible text on the menu in otherwise.
Example
await Menu('Options').open();
await Menu('Options').is({ disabled: true });
await Menu({ id: 'options', disabled: true }).exists();
Filters
title: string – Filter by titleid: string – Filter by idvisible: boolean – Filter by visibility. Defaults totrue. SeeisVisible.disabled: boolean – Filter by whether the menu is disabled. Defaults tofalse.focused: boolean – Filter by whether the menu is focused. Seefocused.
Actions
open():Interaction– Open the menuclick(value: string):Interaction– Click on the menu's itemfocus():Interaction– Move focus to the menublur():Interaction– Move focus away from the menu