click
Click elements in Electron applications using Playwright selectors or snapshot references. Configure button, click count, position, and force options for precise interaction control.
Instructions
Click an element. Pass selector (Playwright selector) or ref (from a snapshot). Pass force: true to skip actionability checks when an overlay is in the way.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| selector | Yes | Playwright selector. Alternative to ref. | |
| ref | No | Ref number from a snapshot call. Alternative to selector. | |
| timeoutMs | No | Default 5000. | |
| button | No | Default left. | |
| clickCount | No | Default 1. Use 2 for double-click. | |
| force | No | Skip actionability checks. Useful when an overlay is intercepting pointer events. | |
| position | No | Click at an offset inside the element (default is centre). Useful for hitting specific sub-regions. |