Type into page element
typeInsert text into a page element identified by snapshot ref; blocks password-like fields unless force=true and hidden documents unless allowHidden=true.
Instructions
Type text into an element by snapshot ref. Password-like fields are blocked unless force=true. Fails with DOCUMENT_HIDDEN when the document is hidden unless allowHidden=true.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | Yes | ||
| text | Yes | ||
| after | No | Optional act-then-observe requests, run after the page action in waitFor, snapshot, pageStatus order. | |
| force | No | ||
| 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. |