Having trouble with await page.select in Puppeteer? How to fix dropdown selection issues? Alternatively:

20 Replies, 1676 Views

Hey! Had the same issue last week. Turns out the dropdown was loading dynamically, so `await page.select` wasn't enough.

Try this:
```javascript
await page.waitForSelector('#dropdown');
await page.evaluate(() => {
document.querySelector('#dropdown').value = 'your_value';
});
```
Sometimes bypassing Puppeteer's select method works better for tricky dropdowns.

Also, check if the dropdown is a custom React/Angular component—those can be finicky with `await page.select puppeteer`.

Messages In This Thread



Users browsing this thread: 1 Guest(s)