*** title: locator.screenshot description: Capture a screenshot of the matched element. --------------------------------------------------------- `locator.screenshot` is a browser runtime capability in the `locator` namespace. ## Availability * Runtime: `browser` * Kind: `raw` * Category: `extraction` * Supported drivers: Playwright, Puppeteer ## SDK Surface * SDK path: `runtime.page.locator(...).screenshot` * Async: Yes ## HTTP Surface * Transport: `workspace.execute(...)` * Call: `locator.screenshot` * Long-running: No ## Reference Semantics * Requires refs: `locator` * Returns refs: `artifact` ## Arguments | Argument | Type | Required | Description | | --------- | -------- | -------- | ------------------- | | `options` | `object` | No | Screenshot options. | ## Result * Type: `artifact` * Description: Screenshot artifact metadata. ## SDK Example ```ts await runtime.page.locator('button[type=submit]').screenshot(); ``` ## HTTP Example ```json { "runtime": "crm", "steps": [ { "call": "locator.screenshot" } ] } ``` ## Related Capabilities * [`page.screenshot`](../extraction/page-screenshot) * [`runtime.live`](../lifecycle/runtime-live)