I am struggling and was hoping someone could point me in the right direction. I am using puppeteer sharp in a .net desktop project.
I want to make to page loaded into puppeteer to scroll to the bottom to deal with some lazy loading, and I have found several articles such as Puppeteer - scroll down until you can't anymore that contain loads of useful info, but for Javascript - I can't work out how to implement this in Puppeteer sharp.
For example I would like to try running this under puppeteer sharp somehow (as I read in the above mentioned article it will do the scroll to bottom) : -
await page.evaluate(() => {
window.scrollBy(0, window.innerHeight);
});
The documentation for puppeteer sharp doesnt seem to cover the above.
cyr