You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@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 });
The text was updated successfully, but these errors were encountered:
@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
The text was updated successfully, but these errors were encountered: