Having trouble with `await page.select` in Puppeteer? Need help with dropdown selection!

7 Replies, 2008 Views

Hey everyone,

So I’m trying to use `await page.select puppeteer` to handle a dropdown on this site I’m automating, but it’s just not working like I expected. The dropdown has options, and I’m passing the correct value, but nada.

Here’s what I’m doing:
```javascript
await page.select('select#myDropdown', 'optionValue');
```
But it’s not selecting anything. Am I missing something obvious?

Also, the dropdown is dynamically loaded—could that be the issue? Do I need to wait for it or something? I tried adding a delay, but that feels hacky.

Any tips or workarounds? Maybe I’m using `await page.select puppeteer` wrong?

Thanks in advance! 🙏

Messages In This Thread
Having trouble with `await page.select` in Puppeteer? Need help with dropdown selection! - by - 09-01-2025, 01:07 AM



Users browsing this thread: 2 Guest(s)