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

20 Replies, 1672 Views

Yo! Double-check if the dropdown is inside an iframe. That’s caught me off guard before.

If it is, you’ll need to switch to the iframe first:

```javascript
const frame = await page.frames().find(f => f.name() === 'iframe_name');
await frame.select('#dropdown', 'value');
```

Otherwise, `await page.select puppeteer` won’t see it.

Messages In This Thread



Users browsing this thread: 1 Guest(s)