Add right/middle click support on act and observe
Merged
MI
10mo ago+13+13+01234567890123456789-6-6-0123456789
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
- Both env local & browserbase work with multiple models on https://www.onlinemictest.com/mouse-test/
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.