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
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow