Press key
press_keyPresses a key or chord to trigger shortcuts, form submissions, or navigation in a Chromium page, optionally focusing a selector first and waiting for resulting navigation.
Instructions
Press a key or chord, e.g. "Enter", "Tab", "Escape", "ArrowDown", "Control+A". Focuses the element first when a selector is given, otherwise sends it to whatever has focus. Waits for any navigation it triggers.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | Key name as used by Playwright keyboard.press | |
| frame | No | CSS selector of the iframe containing the element (e.g. "iframe[name^=__privateStripeFrame]"), or a list for nested iframes, outermost first. Not needed with aria-ref selectors. | |
| timeout | No | Timeout in milliseconds | |
| selector | No | Selector: "aria-ref=e5" from get_page_snapshot (preferred; also reaches into iframes), CSS ("#email", "button.submit"), text ("text=Sign in"), role ("role=button[name=/save/i]") or XPath ("xpath=//a") |