Tutorials: Awesome Modern Web Testing with Playwright

Presented by:


Description

Everybody gets frustrated when web apps are broken, but testing them thoroughly doesn't need to be a chore. Playwright, a new open-source browser automation tool from Microsoft, makes testing web apps fun! Playwright outperforms other tools like Selenium WebDriver with a slew of nifty features like automatic waiting, mobile emulation, and network interception. Plus, with isolated browser contexts, Playwright tests can set up much faster than traditional Web UI tests.

In this tutorial, we will build a Python test automation project from the ground up. We will automate web search engine tests together step-by-step using Playwright for interactions and pytest for execution.

Specifically, we will cover:

  1. How to install and configure Playwright
  2. How to integrate Playwright with pytest, Python’s leading test framework
  3. How to perform interactions through page objects
  4. How to conveniently run different browsers, capture videos, and run tests in parallel

By the end of this tutorial, you'll be empowered to test modern web apps with modern web test tools. You'll also have an example project to be the foundation for your future tests. You can use Playwright to test Django apps, Flask apps, or any other kinds of apps!