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')
More Related Contents:
- How to click on element with text in Puppeteer
- How can I pass variable into an evaluate function?
- Puppeteer wait until page is completely loaded
- How do print the console output of the page in puppeter as it would appear in the browser?
- Puppeteer – scroll down until you can’t anymore
- Puppeteer page.evaluate querySelectorAll return empty objects
- Puppeteer log inside page.evaluate
- How to run Puppeteer code in any web browser?
- How to deal with the captcha when doing Web Scraping in Puppeteer?
- puppeteer: how to wait until an element is visible?
- How to pass a function in Puppeteers .evaluate() method?
- Headless browser detection
- Puppeteer unable to run on Heroku
- Message “Async callback was not invoked within the 5000 ms timeout specified by jest.setTimeout”
- How to download file with puppeteer using headless: true?
- Why does headless need to be false for Puppeteer to work?
- puppeteer: wait N seconds before continuing to the next line
- Puppeteer doesn’t close browser
- How can I capture all network requests and full response data when loading a page in Chrome?
- VSCODE: No debug adapter, can not send ‘variables'”
- Why can’t I access ‘window’ in an exposeFunction() function with Puppeteer?
- Crawling multiple URLs in a loop using Puppeteer
- Get elements from page.evaluate in Puppeteer? [duplicate]
- Puppeteer – Protocol error (Page.navigate): Target closed
- How to avoid being detected as bot on Puppeteer and Phantomjs?
- Can the browser turned headless mid-execution when it was started normally, or vice-versa?
- Puppeteer: How to listen to a specific response?
- Can I use puppeteer inside chrome extension
- Why I got document is not defined error in puppeteer?
- puppeteer wait for page/DOM updates – respond to new items that are added after initial loading