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.
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
Filters
title
: string – Filter by titleid
: string – Filter by idvisible
: boolean – Filter by visibility. Defaults totrue
. See isVisible.disabled
: boolean – Filter by whether the menu is disabled. Defaults tofalse
.focused
: boolean – Filter by whether the menu is focused. See focused.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