input
Perform browser input actions such as click, type, press, hover, focus, drag, scroll, and pinch zoom via CSS selectors.
Instructions
Perform browser input actions. Actions: click (click element), type (type text into element), press (press keyboard key), hover (hover over element), focus (focus element by selector), focusNext (Tab to next focusable element), focusPrevious (Shift+Tab to previous focusable element), drag (drag from one point to another), scroll (scroll wheel at position), mousemove (move mouse to position), pinch (pinch zoom gesture)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | ||
| y | No | ||
| to | No | ||
| key | No | ||
| from | No | ||
| text | No | ||
| count | No | Tab count | |
| delay | No | Keystroke delay ms | |
| steps | No | Drag smoothness | |
| action | Yes | ||
| append | No | Append text instead of replacing (default: false) | |
| deltaX | No | Horizontal scroll px | |
| deltaY | No | Vertical scroll px | |
| selector | No | CSS selector. Supports :has-text("x"), :text("x") | |
| clickCount | No | ||
| scaleFactor | No | >1 zoom in, <1 zoom out | |
| handleModals | No | ||
| detectChanges | No | ||
| settleTimeout | No | DOM settle timeout ms | |
| dismissStrategy | No | ||
| connectionReason | Yes |