Skip to content

Feature request: html element screenshot (for example div) #947

Closed

Description

@human211

The project is great!... but the only feature I miss is creating screenshots of individual elements. For example, in puppeteer I do it like this:

const page = await browser.newPage();
page.setViewport({ width: width >> 0, height: width >> 0, deviceScaleFactor: scale });
await page.setContent(content);
const body = await page.$('fieldset');
const buffer = await body.screenshot({ omitBackground: true });

I hope that it will be possible to do this here too!

Activity

  1. svenit commented on Jun 18, 2025

    @svenit

    +1

  2. gulien commented on Aug 13, 2026

    @gulien
    Member

    Done in 8d1eeaa

  3. added a commit that references this issue on Oct 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions