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!
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!
