Giter VIP home page Giter VIP logo

awesome-web-testing-playwright's Introduction

Awesome Web Testing with Playwright

This repository contains the Automation Panda's official Playwright tutorial!

In this tutorial, you will progressively create and build a new test automation project using Playwright in TypeScript. This GitHub repository provides all instructions for the tutorial. It also provides example code for each chapter, so you can compare your code to the example if you get stuck.

Prerequisites

You will need the following tools:

  1. A recent version of Node.js.
  2. A good editor like Visual Studio Code with the Playwright extension.
  3. A GitHub account with a Git client.

Tutorial setup

Before starting this tutorial, create the new project using the following commands:

mkdir awesome-playwright-tests
cd awesome-playwright-tests
npm init playwright@latest

Choose the default options for each prompt. Choose YES to install the Playwright browsers. This tutorial was created with Playwright 1.36.1.

Warning: Complete these steps before taking this tutorial as part of a live session (like at a conference or a webinar). The Playwright browsers are a few hundred MBs large, and you could fall behind if you are stuck waiting for slow downloads over WiFi.

Tutorial instructions

There are eight chapters in total:

  1. Setting modern web testing goals
  2. Exploring Playwright's features
  3. Writing our first test
  4. Refactoring interactions with page objects
  5. Breaking down tests by behaviors
  6. Scaling tests with parallel execution
  7. Running tests with GitHub Actions
  8. Learning and practicing more

Chapter-by-chapter tutorial instructions are provided under the tutorial folder. This repository also contains a branch for each chapter's example code.

Ready to get started?

Go to Chapter 1 to start the tutorial!

awesome-web-testing-playwright's People

Contributors

automationpanda avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.