How to emulate the Enter key in Puppeteer
To emulate a keypress to the Enter
key in Puppeteer, use
await page.keyboard.press("Enter");
The E
needs to be uppercase for this to work!
To emulate a keypress to the Enter
key in Puppeteer, use
await page.keyboard.press("Enter");
The E
needs to be uppercase for this to work!