/playwright-practicesoftwaretesting.com

Example using Playwright against site https://practicesoftwaretesting.com

Primary LanguageTypeScriptGNU General Public License v3.0GPL-3.0

Playwright Typescript Demo

I plan to create a playwright-demo repository showing off different features of playwright.

For many of the tests I will be using - https://practicesoftwaretesting.com

The the first of many articles utilizing this repo can be found https://playwrightsolutions.com/how-do-you-define-an-apiurl-along-with-the-baseurl-in-playwright/

Getting Started

The framework we are using is Playwright. If you want a good video to introduce you to Playwright, check out this video. You can try out playwright in the cloud here.

For helpful tips checkout https://playwrightsolutions.com

Installation

If you want to run this on your local machine, git clone the repo to local. In the main directory run the below commands. This will install playwright dependencies on your machine.

npm install
npx playwright install

Running the automated checks

npx playwright test

Running the Code Generator

npx playwright codegen

Running the Tests in VS Code

The Playwright team has released a VS Code Extension that allows you to debug tests easily with the click or right click of a button.

Writing Assertions

*Playwright API Assertions - docs to the API assertions using Jest

Playwright Resources