Puppeteer v0.13.0 has page.select() method, which does exactly that. You just have to give it the value to select. So, assuming you have an <option value="my-value">
in your <select>
:
await page.select('#telCountryInput', 'my-value')
Puppeteer v0.13.0 has page.select() method, which does exactly that. You just have to give it the value to select. So, assuming you have an <option value="my-value">
in your <select>
:
await page.select('#telCountryInput', 'my-value')