send_keys
Send keyboard keys or combinations like 'tab', 'enter', or 'ctrl+a' to the focused element or a specific element using an optional CSS selector. Ideal for simulating user keystrokes during browser automation.
Instructions
Send a key or key combination to the focused element (or a specific element if selector is given). Use key names like 'tab', 'enter', 'escape', 'up', 'down', 'f5', or combos like 'ctrl+a', 'shift+tab'.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| by | No | css | |
| key | Yes | Key name or combo e.g. 'tab', 'ctrl+a', 'enter' | |
| timeout | No | ||
| selector | No | Element to focus before sending (optional) |