Playwright

Hover to reveal a menu

Medium70 pts
  • hover
  • Mouse Actions
  • Flyout Menus
Practice app · Board Planner

Hover menus, drag and drop, context menu, click-and-hold and keyboard shortcuts.

Test URL
/lab/playwright-hover-to-reveal-a-menu

Your starter code already declares TEST_URL — never hardcode a host.

Objective

Hover over a trigger element to reveal a hidden dropdown menu and click an item.

Your Task

  1. 1Navigate to the actions workspace at TEST_URL.
  2. 2Hover over the workspace account menu (#hover-menu or #menu-trigger).
  3. 3Assert that the account submenu (#hover-submenu or #dropdown-menu) is visible.
  4. 4Click the Settings option (#submenu-settings or #menu-item-settings).
  5. 5Assert that the result status (#hover-result) displays 'Opened: Settings'.

Validation Checks

  • Actions workspace is loaded at TEST_URL
  • Account menu trigger (#hover-menu) is hovered
  • Submenu dropdown (#hover-submenu) is verified visible
  • Settings option (#submenu-settings) is clicked
  • At least 1 assertion passes

Playwright · Playwright Practice Track · Actions & inputs