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

24 Replies, 2283 Views

Hey everyone,

So I’m having some trouble with `await page.select puppeteer` and could really use some help. I’m trying to select an option from a dropdown, but it’s just not working as expected.

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

Also, the dropdown is dynamically loaded—could that be the issue? Do I need to wait for something before using `await page.select puppeteer`?

Any tips or workarounds would be super appreciated! Thanks in advance, y’all.

Cheers!

Messages In This Thread
Having trouble with `await page.select` in Puppeteer? Need help with dropdown selection! - by - 10-11-2024, 09:16 AM



Users browsing this thread: 1 Guest(s)