Next-Gen App & Browser
Testing Cloud

Trusted by 2 Mn+ QAs & Devs to accelerate their release cycles

Next-Gen App & Browser Testing Cloud

How to install or set up Puppeteer?

To install Puppeteer, you must first have Node.js and npm (the Node.js package manager) installed on your system.

  • To check if you have Node.js and npm installed, you can open a terminal and run the following commands:

  • node -v
    npm -v

    If you don't have Node.js and npm installed, you can download and install them from the official website.


  • Once you have Node.js and npm installed, you can use npm to install Puppeteer by running the following command in your terminal:

  • npm install puppeteer

  • This will install Puppeteer and all of its dependencies. To use Puppeteer in your code, you will need to import it using the following code at the top of your JavaScript file:

  • const puppeteer = require('puppeteer');

  • You can then use the puppeteer object to control a headless Chrome browser and interact with web pages.

Test Your Website on 3000+ Browsers

Get 100 minutes of automation test minutes FREE!!

Test Now...

KaneAI - Testing Assistant

World’s first AI-Native E2E testing agent.

...
ShadowLT Logo

Start your journey with LambdaTest

Get 100 minutes of automation test minutes FREE!!

Signup for free