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

29 Replies, 2531 Views

Hmm, I’ve had this issue too. Sometimes `await page.select puppeteer` doesn’t work if the dropdown is hidden or disabled. Try adding a click event to open the dropdown first:

```javascript
await page.click('select#myDropdown');
await page.select('select#myDropdown', 'optionValue');
```

This might trigger the dropdown to load properly.

Messages In This Thread



Users browsing this thread: 1 Guest(s)