*** title: locator.type description: Type text into the matched element. ------------------------------------------------ `locator.type` 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(...).type` * Async: Yes ## HTTP Surface * Transport: `workspace.execute(...)` * Call: `locator.type` * Long-running: No ## Reference Semantics * Requires refs: `locator` ## Arguments | Argument | Type | Required | Description | | --------- | -------- | -------- | ---------------------- | | `text` | `string` | Yes | Text to type. | | `options` | `object` | No | Driver typing options. | ## Result * Type: `void` * Description: Resolves when typing completes. ## SDK Example ```ts await runtime.page.locator('button[type=submit]').type('hello'); ``` ## HTTP Example ```json { "runtime": "crm", "steps": [ { "call": "locator.type", "args": [ "hello" ] } ] } ``` ## Related Capabilities * [`locator.fill`](../interaction/locator-fill) * [`locator.press`](../interaction/locator-press)