*** title: locator.textContent description: Read the raw textContent of the matched element. ------------------------------------------------------------- `locator.textContent` 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(...).textContent` * Async: Yes ## HTTP Surface * Transport: `workspace.execute(...)` * Call: `locator.textContent` * Long-running: No ## Reference Semantics * Requires refs: `locator` ## Arguments This capability does not take explicit arguments. ## Result * Type: `string | null` * Description: Raw textContent value of the matched element. ## SDK Example ```ts await runtime.page.locator('button[type=submit]').textContent(); ``` ## HTTP Example ```json { "runtime": "crm", "steps": [ { "call": "locator.textContent" } ] } ``` ## Related Capabilities * [`locator.innerText`](../extraction/locator-inner-text) * [`page.content`](../extraction/page-content)