Press Browser Key
press_keyPress keyboard keys (Escape, Enter, Tab, arrows) to test web UI interactions like modals, forms, and menu navigation.
Instructions
Press a keyboard key — the web-mode equivalent testers reach for constantly.
key is a Playwright key name: "Escape" (dismiss a modal/overlay), "Enter"
(submit a focused field), "Tab" / "Shift+Tab" (keyboard navigation / focus
order), "ArrowDown"/"ArrowUp"/"ArrowLeft"/"ArrowRight" (menus, sliders,
listboxes), "Backspace", "Delete", "PageDown", "Home", or a chord like
"Control+a". Optionally pass description to focus that element first
(e.g. press ArrowRight on "the volume slider"); omit it to press at the
page level (e.g. Escape to close whatever modal is open).
Real users hit keys — a modal you can only close with Esc, a form that submits on Enter, arrow-key menu nav, focus-order bugs — none of which click/type can exercise. After it, observe() to see what changed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | ||
| description | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |