click
Triggers a UI element or a viewport coordinate in pywebview. Supports element IDs with optional offset and x/y positions.
Instructions
Click an element or page coordinate.
element_id only: clicks the center of that element
element_id + x/y: clicks at offset within element bounds
x/y only: clicks at viewport coordinates
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | ||
| y | No | ||
| button | No | left | |
| element_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |