send_keys
Send keyboard keys or key combinations to the focused element or a target selector. Use names like 'tab', 'enter', 'ctrl+a' to simulate user input and control browser behavior during automated tests.
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) |