How to emulate the Enter key in Puppeteer

To emulate a keypress to the Enter key in Puppeteer, use

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

The E needs to be uppercase for this to work!


Check out similar posts by category: Javascript, Puppeteer