Skip to content

POC framework for Playwright test automation using POM and all the best practices

Notifications You must be signed in to change notification settings

anu-01/playwright-ts-poc

Repository files navigation

🎭 Playwright for UI and API Test Automation Framework using Typescript

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API. Playwright is built to enable cross-browser web automation that is ever-green, capable, reliable and fast.

Features of this framework

Getting Started

Pre-requisites

  • Download and install Node.js
  • Download and install visual studio code

Setup scripts

  • Clone the repository into a folder
  • Go to Project root directory and install Dependency: npm install
  • All the dependencies from package.json would be installed in node_modules folder.

How to write Test

  • Add new spec under web/tests folder
  • Name the file as .spec.ts (e.g. cart.spec.ts)
  • Create a file for a page under web/pages as .ts (e.g. cartPage.ts)
  • Add page objects in the constructor of the class and method implementation for page

About

POC framework for Playwright test automation using POM and all the best practices

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages