Press page keys
keypressDispatch DOM keyboard events to a web page. Use for typing or key combinations; fails on hidden pages unless allowHidden is enabled.
Instructions
Dispatch common DOM keyboard events in the target page. Browser/OS shortcuts are not guaranteed under MV3. Fails with DOCUMENT_HIDDEN when the document is hidden unless allowHidden=true.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| keys | Yes | ||
| after | No | Optional act-then-observe requests, run after the page action in waitFor, snapshot, pageStatus order. | |
| tabId | No | Optional Chrome tab id. Defaults to the claimed session tab, then the active tab. | |
| documentId | No | Exact frame document id returned by list_frames. Omit to target the current top document. | |
| allowHidden | No | When true, click/type on a hidden document. Default fails with DOCUMENT_HIDDEN and names activate_tab as the remedy. | |
| sessionTabId | No | Optional claimed tab session id returned by claim_tab. |