Puppeteer – check if a html element is visible ‘on-screen’
Hello My goal is to imitate human behaviour and make sure that only scrolled-to links/hyperlinks are clicked with puppeteer. Just like a human would click only the hyperlinks they can see on the screen My Specs Puppeteer: 22.13.1 Puppeteer-extra: 3.3.6 NodeJS: 20.14.11 TypeScript: 5.5.3 Pseudo Code Example if (element.isVisibleOnScreenAndScrolledTo()) {element.click()} More Details I am scrolling […]