File size: 540 Bytes
25b930c | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 | # Type
Type text into an element, sending key events as the text is entered.
```bash
curl -X POST http://localhost:9867/action \
-H "Content-Type: application/json" \
-d '{"kind":"type","ref":"e8","text":"Ada Lovelace"}'
# CLI Alternative
pinchtab type e8 "Ada Lovelace"
# Response
{
"success": true,
"result": {
"success": true
}
}
```
Notes:
- use `fill` when you want to set the value more directly
- top-level `type` expects a ref, not a CSS selector
## Related Pages
- [Fill](./fill.md)
- [Snapshot](./snapshot.md)
|