Right-click, double-click, middle-click or hold
browser_mouse_actionPerform right-click, middle-click, double-click, or press-and-hold mouse actions at a selector or viewport coordinates, enabling non-standard clicks during Firefox automation.
Instructions
Perform a mouse action other than a plain left click: right button (context menu), middle button, double-click, or press-and-hold for N ms. Target by selector or viewport coordinates. The page sees the matching mousedown/mouseup/contextmenu events with the right button number. NOTE: a site that blocks the context menu in JavaScript (preventDefault on contextmenu) will still block it — that is the page deciding, not the input layer.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | Viewport x (when no selector) | |
| y | No | Viewport y (when no selector) | |
| count | No | Click count: 1 single, 2 double (default 1) | |
| button | No | Mouse button (default left) | |
| holdMs | No | Hold the button this long before releasing (default 0) | |
| context | No | Tab context id (default: the active tab) | |
| selector | No | Element to act on | |
| modifiers | No | Modifiers held during the click |