This thread is trying to answer question "How do I scroll down and screenshot every section of a web page?"
No need to scroll, specify fullPage: true
https://playwright.dev/docs/screenshots#full-page-screenshots
Rayrun is a community for QA engineers. I am constantly looking for new ways to add value to people learning Playwright and other browser automation frameworks. If you have feedback, email [email protected].