Konak
Member
Hello folks, I'm having a hard time with Puppeteer. I'm trying to automate a click on a button that's dynamically loaded. My code looks like this:
But I get an error saying the node is not visible. Any advice on how to handle dynamic elements better?
JavaScript:
await page.waitForSelector('#dynamic-button');
await page.click('#dynamic-button');