Skip to content

Take elements into account which do appear on scrolling #392

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions