Having trouble with 'await page.select' in Puppeteer? How to handle dropdowns effectively?

18 Replies, 1712 Views

Wow, thanks so much for all the replies! I tried a few things based on your suggestions, and adding *await page.waitForSelector* before using *await page.select Puppeteer* worked like a charm.

I also checked if the dropdown was a native `<select>` element, and it was, so no need for manual clicks.

One follow-up question though—how do you handle dropdowns that load options via AJAX? Do you just wait for the network requests to finish?

Thanks again, you guys are awesome!

Messages In This Thread



Users browsing this thread: 1 Guest(s)