Skip to content

Latest commit

 

History

History
29 lines (22 loc) · 1.59 KB

README.md

File metadata and controls

29 lines (22 loc) · 1.59 KB

🎭 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