scroll to specific time in puppeteer code example
Example 1: puppeteer scrolling down
await page.evaluate( () => {
window.scrollBy(0, window.innerHeight);
});
await page.waitForSelector('.class_name');
Example 2: simulate schrool event puppeter
page.evaluate(_ => {
window.scrollBy(0, window.innerHeight);
});