Having trouble with 'await page.select' in Puppeteer? How to handle dropdowns effectively?

18 Replies, 1722 Views

Hey! I ran into this exact problem last week. *await page.select Puppeteer* wasn’t working because the dropdown was a custom React component.

What I did was:
- Use *await page.click* to open the dropdown.
- Then use *await page.click* again to select the option.

It’s a bit more manual, but it works. Also, make sure you’re targeting the correct selectors. Sometimes the issue is just a typo or wrong class name.

Messages In This Thread



Users browsing this thread: 1 Guest(s)