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

20 Replies, 1604 Views

Try adding a `page.waitForNavigation()` after the select. Some dropdowns trigger a page reload or XHR call.

```javascript
await page.select('#dropdown', 'value');
await page.waitForNavigation({ waitUntil: 'networkidle0' });
```

If that doesn’t help, the dropdown might be event-driven—check for `change` listeners in DevTools.



Users browsing this thread: 2 Guest(s)