Categories
JavaScript Answers

How to press Enter button in JavaScript Puppeteer?

Spread the love

To press Enter button in JavaScript Puppeteer, we call the page.keyword.press method.

For instance, we write

await page.keyboard.press("Enter");

to call page.keyboard.press to press the enter key on the page.

By John Au-Yeung

Web developer specializing in React, Vue, and front end development.

Leave a Reply

Your email address will not be published. Required fields are marked *