Add right/middle click support on act and observe

Merged
MI
10mo ago
+13-6

why

Locator.click has support for both right and middle clicks, but these are not properly piped or prompted for act or observe

what changed

  • clickElement on act handler reads the button from args (defaults to left if undefined)
  • Updated act/observe prompts to request "right" or "middle"
  • Moved MouseButton type to types from locator

test plan


Summary by cubic

Added right and right middle click support to act/observe so flows can trigger context menus and middle-click behaviors. Handlers now pass the mouse button to Locator.click.

  • New Features
    • clickElement reads the button from args and calls locator.click({ button }).
    • Updated act/observe prompts to request "right" or "middle" for non-left clicks.
    • Exported MouseButton type for use across handlers.