fill_input
Fill form fields in React/Vue apps by using native value setters and dispatching input/change events, ensuring controlled components receive updates. Returns ok:false when the element is not found or unsupported, avoiding false success.
Instructions
fill_input("#email", "a@b.com") — 框架感知填值。 走 scripting:原生 value setter 写值 + 派发 input/change,React/Vue 受控组件 能收到 onChange(type_text 的 Input.insertText 常绕不过框架 setter)。 非 input/textarea/contenteditable 或找不到元素 → ok:false,不伪造成功。 自定义组件要真实键入用 click_selector + type_text。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sel | Yes | ||
| tab | No | ||
| text | Yes |