*** title: locator.fill description: Replace the current value of an input-like element. ---------------------------------------------------------------- `locator.fill` is a browser runtime capability in the `locator` namespace. ## Availability * Runtime: `browser` * Kind: `raw` * Category: `interaction` * Supported drivers: Playwright, Puppeteer ## SDK Surface * SDK path: `runtime.page.locator(...).fill` * Async: Yes ## HTTP Surface * Transport: `workspace.execute(...)` * Call: `locator.fill` * Long-running: No ## Reference Semantics * Requires refs: `locator` ## Arguments | Argument | Type | Required | Description | | --------- | -------- | -------- | ------------------------------ | | `value` | `string` | Yes | Text to insert into the input. | | `options` | `object` | No | Driver fill options. | ## Result * Type: `void` * Description: Resolves when the input value is updated. ## SDK Example ```ts await runtime.page.locator('button[type=submit]').fill('hello'); ``` ## HTTP Example ```json { "runtime": "crm", "steps": [ { "call": "locator.fill", "args": [ "hello" ] } ] } ``` ## Related Capabilities * [`locator.type`](../interaction/locator-type) * [`locator.press`](../interaction/locator-press)