Skip to content

rahul-aot/puppeteer-automation

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Puppeteer Browser Extension Automation

This project uses Puppeteer to automate testing for a browser extension.

Prerequisites

  • Node.js: Ensure Node.js (v14 or higher) is installed.
  • npm: Comes with Node.js for package management.

Clone the Repository

git clone <repository-url>
cd my-extension-testing-project
npm install

Create a New Project

mkdir my-extension-testing-project
cd my-extension-testing-project
npm init -y
npm install puppeteer

Update package.json

Add the following script to your package.json file:

"scripts": {
  "test": "node src/tests/extension-test.js"
}

To run your tests, use:

npm test

Recommended Folder Structure

my-extension-testing-project/
│
├── src/
│   ├── tests/
│   │   └── extension-test.js   # Your test scripts go here
│   ├── extensions/             # Folder for your extension build files
│   │   └── your-extension/     # Place your extension build files here
│   └── utils/                  # Utility functions (if needed)
│
├── package.json                # Project metadata and dependencies
├── package-lock.json           # Auto-generated file for dependency versions
└── README.md                   # Documentation for your project

Commit Graph Video

Click the thumbnail below to watch the Commit Graph Video:

Demo Video

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 99.7%
  • HTML 0.3%