rubber-blueR
Apify & Crawlee4y ago
2 replies
rubber-blue

Puppeteer click() angular page

Hey guys, I'm having a weird problem. I have to click the X button on the website and it is normally visible in the HTML code (ul > li > a) and even when I enter the JS code $("#name123").click() in the browser console, it clicks nicely, but not through puppeteer I want to click on it because I can't see it. Here the content is dynamically loaded for sure, but I waited 10 seconds (or even longer) and puppeteer still didn't see it. I also tried with the waitForSelector function, but in the end I got an error that it timed out. Do you know why this is happening?
Was this page helpful?