Set up package.json
& node_modules
npm init
Install puppeteer
npm install puppeteer --save
await page.screenshot({ path: 'example.png',fullPage: true });
fullPage: true
→ TO get Full Page Screen Shot
Let us take an example, https://www.amazon.in/s?k=Macbook