Skip to content

QualityOwl/demo-playwright-typescript

Repository files navigation

Playwright (TS) Project

This repository contains my Playwright project written from scratch using TypeScript. The enclosed code is designed to showcase my skills as an automation engineer and demonstrate my understanding of test automation using Playwright.

Test Results

An example test run with results can be viewed here --> Playwright Test Results

Getting Started

To get started with this solution, you will need the following installed on your local machine:

  • Visual Studio Code (latest version)
  • Node.js (LTS version)

Installation

  1. Clone this repository to your local machine using the following command:
  • git clone https://github.com/QualityOwl/demo-playwright-typescript.git
  1. Open the project folder in Visual Studio Code.

  2. Install the 'Playwright Test for VSCode' extension.

  3. Install dependencies:

  • npm ci
  1. Install Playwright browsers:
  • npx playwright install --with-deps

Usage

The project contains sample test cases that demonstrate how to use Playwright to automate browser interactions. To run the sample test cases, follow these steps:

  1. Open the 'TEST EXPLORER' window in Visual Studio Code by selecting 'Testing' from the activity bar.

  2. In the 'TEST EXPLORER' window, select any test case of your choice and click the 'Run Test' button.

  3. The browser will launch and the test case will execute. You should see the browser navigate to the LambdaTest Selenium Playground, complete the test steps, and validate the results.

Contributing

If you find any bugs or issues with this solution, please feel free to open a GitHub issue. I welcome any feedback or contributions that can help improve this solution.

License

This solution is licensed under the MIT License. Feel free to use this solution in any way you see fit, but please give credit where credit is due.

About

Playwright test automation in TypeScript - custom fixtures, page object model, and multi-browser CI via GitHub Actions.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors