*** title: Browser Extraction description: 'Content retrieval, screenshots, evaluation, and read-side data access.' ------------------------------------------------------------------------------------- Content retrieval, screenshots, evaluation, and read-side data access. ## Support Matrix | Capability | Playwright | Puppeteer | Stagehand | | ------------------------------------------------- | ---------- | --------- | --------- | | [`page.content`](./page-content) | Yes | Yes | Yes | | [`page.screenshot`](./page-screenshot) | Yes | Yes | Yes | | [`page.evaluate`](./page-evaluate) | Yes | Yes | Yes | | [`locator.textContent`](./locator-text-content) | Yes | Yes | | | [`locator.innerText`](./locator-inner-text) | Yes | Yes | | | [`locator.getAttribute`](./locator-get-attribute) | Yes | Yes | | | [`locator.screenshot`](./locator-screenshot) | Yes | Yes | | ## Capabilities * [`page.content`](./page-content) - Return the current page HTML content. * [`page.screenshot`](./page-screenshot) - Capture a screenshot of the current page. * [`page.evaluate`](./page-evaluate) - Run code inside the page context and return the serialized result. * [`locator.textContent`](./locator-text-content) - Read the raw textContent of the matched element. * [`locator.innerText`](./locator-inner-text) - Read the rendered text of the matched element. * [`locator.getAttribute`](./locator-get-attribute) - Read an attribute from the matched element. * [`locator.screenshot`](./locator-screenshot) - Capture a screenshot of the matched element.