-
Notifications
You must be signed in to change notification settings - Fork 33
Open

Description
Hi!
Currently elements which appear only after scrolling (like in many one-pager) are not taken into account when css is generated.
Regarding to https://github.com/Zrce/puppeteer-coverage-report-test/blob/master/index.js
I would like to see that an option for autoscroll is added
const autoScroll = async (page) => { await page.evaluate(async () => { await new Promise((resolve, reject) => { console.log("start scrolling"); var totalHeight = 0; var distance = 100; var timer = setInterval(() => { var scrollHeight = document.body.scrollHeight; window.scrollBy(0, distance); totalHeight += distance; if (totalHeight >= scrollHeight) { clearInterval(timer); resolve(); } }, 100); }); }); }
May I create a pull request for that?
Metadata
Metadata
Assignees
Labels
No labels