March 13, 2023 · 2 min read
Puppeteer is a nodejs library that is used to test webpages in a headless browser. It opens chromium in a headless browser. Create a Directory puppeteertest mkdir puppeteertest cd puppeteertest First, Create a nodejs project using the below command. npm init -y this creates a nodejs project with the required basic configuration. Install puppeteer dependency npm install puppeteer --save It installs the puppeteer into a node project. create a test.js file and add js code to it....