tv_press
Send remote key presses to Smart TVs/Chrome during QA, supporting long-press and repeated bursts, and return the focused element.
Instructions
Send a remote key. Names: UP/DOWN/LEFT/RIGHT/ENTER/BACK/MENU/RED/GREEN/YELLOW/BLUE/PLAY/PAUSE/PAGE_UP/... (or a raw numeric keyCode). durationMs holds the key (long-press); repeat+intervalMs sends a burst (e.g. move several tiles). Returns the focused element after the press.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | Key name (case-insensitive) or raw numeric keyCode. | |
| device | No | Device id from devices.json. Omit to use the default device. | |
| repeat | No | Send the press N times (default 1). | |
| durationMs | No | Hold duration in ms for a long-press. Omit or 0 for a normal press. | |
| intervalMs | No | Delay between repeats in ms (default 250). |