Puppeteer in NodeJS reports ‘Error: Node is either not visible or not an HTMLElement’
Try doing this: await button.evaluate(b => b.click()); instead of await button.click(); The difference is that button.evaluate(b => b.click()) runs the JavaScript HTMLElement.click() method on the given element in the browser context, which will fire a click event on that element even if it’s hidden, off-screen or covered by a different element, whereas button.click() clicks using … Read more