Skip to content

About

Playwright Python test automation framework for SauceDemo

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

6 Commits

Folders and files

Repository files navigation

Playwright Python Test Automation Framework

CI

A maintainable test automation framework using Playwright (Python), pytest, and Page Object Model for SauceDemo.

Features

  • Page Object Model (POM) for clean, reusable page classes
  • Parameterized tests for login & cart, driven by JSON test data
  • Automatic screenshot on test failure
  • Parallel execution with pytest-xdist
  • HTML reports (pytest-html)
  • CI/CD pipeline with GitHub Actions (runs on push + daily schedule)

Tech Stack

  • Python 3.11+
  • Playwright (Chromium)
  • Pytest, pytest-html, pytest-xdist

Setup (local)

# Clone the repo
git clone https://github.com/kallurayaankit/playwright-framework.git
cd playwright-framework

# Create and activate virtual environment
python -m venv venv
venv\Scripts\activate.bat   # (or source venv/bin/activate on Mac/Linux)

# Install dependencies
pip install -r requirements.txt
playwright install chromium

About

Playwright Python test automation framework for SauceDemo

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages