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…
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…
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