Skip to content

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Screenshot your website programmatically

This script will take screenshots of your website programmatically by using Playwright in different viewpoints based on a configuration file.

Requirements

Step-by-step guide

  • Install Node.js if you have not.
  • Clone the repository from GIT.
  • Run npm install to install the node modules.
  • Copy the example folder to your project (abc) folder.
  • Update the projects/abc/config.json accordingly
  • Screenshots will be saved in projects/abc/screenshots/ folder
  • Usages:
    • Take screenshots for all viewpoints defined in screenshot.js: node screenshot.js -p abc
    • Take screenshots by emulating a supported device only: node screenshot.js -p abc -d "iPad Mini"
    • Take screenshots for a sepecified viewpoint: node screenshot.js -p abc -w 1900 -h 1200

About

Screenshot website by using Playwright.

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages