Fill input
fill_inputClears an input, textarea, or contenteditable element and enters text; masks password and card values in recordings and blocks card entry on live payment pages.
Instructions
Clear an input, textarea or contenteditable element and fill it with text. Values typed into password and payment-card fields are masked in recordings. Card fields are refused if the page uses a LIVE payment environment; use the provider's test mode and test cards (e.g. Stripe 4242 4242 4242 4242).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Text to enter (an empty string just clears the field) | |
| 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 | Yes | 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") |