saveScreenshot of given selector


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…

puppeteer has an API to do that, I guess you can implement it with custom helper ->