-
Notifications
You must be signed in to change notification settings - Fork 10
Open
Description
@choraria
Is your feature request related to a problem? Please describe.
We need a way to take screenshot of HTML elements and not just the page.
Describe the solution you'd like
Ideally we can have a query param that accepts the HTML element and screenshots it instead of the page if existent.
Describe alternatives you've considered
No real alternatives besides hosting it myself.
Additional context
Usage example
const element = await page.$('.MuiBox-root.mui-style-1evyyw3');
const screenshotBuffer = element
? await element.screenshot({ type })
: await page.screenshot({ fullPage, type });
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels