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.
- Design Pattern: Page Object Model
- Playwright Report
- Authentication of Multiple Users
- Playwright for API testing
- Cloud Integration: Microsoft Playwright Testing
- Download and install Node.js
- Download and install visual studio code
- 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.
- 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