Awesome Web Testing with Playwright in Python

Andrew Knight

Applitools

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 talk, 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 a lot of topics that will include such things as how to install and configure Playwright, how to integrate Playwright with pytest, Python’s leading test framework
,how to perform interactions through page objects, 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.

Key Takeaways

  1. Learn now to setup Playwright
  2. Discover how to integrate Playwright with Python
  3. Understand how to test web apps with Playwright

This talk is part of the EuroSTAR Deep Dive Week – Automation Edition. You are invited to enjoy live presentations, and blogs on automation.

About Me!

Andrew Knight is a software engineer who specialises in building test automation systems from the ground up, which involves both software development for test code as well as the infrastructure to run it in continuous integration. Andrew also does Web dev and tool dev from time to time. He loves databases and compiler theory. His main programming languages are Python, Java, C#, and JavaScript. Andrew holds a Computer Science BS/MS from RIT, and currently works with Applitools. Find more about Andrew on LinkedIn.


See more



Similar Categories