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.
An example test run with results can be viewed here --> Playwright Test Results
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)
- Clone this repository to your local machine using the following command:
git clone https://github.com/QualityOwl/demo-playwright-typescript.git
-
Open the project folder in Visual Studio Code.
-
Install the 'Playwright Test for VSCode' extension.
-
Install dependencies:
npm ci
- Install Playwright browsers:
npx playwright install --with-deps
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:
-
Open the 'TEST EXPLORER' window in Visual Studio Code by selecting 'Testing' from the activity bar.
-
In the 'TEST EXPLORER' window, select any test case of your choice and click the 'Run Test' button.
-
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.
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.
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.