saveScreenshot of given selector

#1

Hi,

I am using codeceptjs with puppeteer helper for my automation testing. Is there a way to capture screenshot of the given selector instead of full page screenshot?

Thanks in advance…

0 Likes

#2

puppeteer has an API to do that, I guess you can implement it with custom helper -> https://github.com/GoogleChrome/puppeteer/blob/v0.12.0/docs/api.md#elementhandlescreenshotoptions

0 Likes