Options beforeScreenshot doesn't work
kareljuricka opened this issue · 0 comments
kareljuricka commented
OS version:
macOS Big Sur 11.6.4
Pageres version:
6.3.0
Node version:
17.6.0
First, there is typo error in doc/source. In doc you use beforeScreenshot, but in code there is beforeScreenShot.
But neither with beforeScreenShot, no log and action happen.
beforeScreenShot: async (page, browser) => {
console.log('beforeScreenShot');
await page.click('#myButton');
},