Awesome Modern Web Testing with Playwright
summary
Builds a Python test automation project from scratch that automates a DuckDuckGo search using Playwright and pytest, showing installation (pip install playwright pytest pytest-playwright and playwright install), page objects for search and results, and web‑first assertions via expect. Demonstrates Playwright features like automatic waiting, isolated browser contexts, network interception, running Chromium/Firefox/WebKit and running tests in parallel, plus saving screenshots and capture videos of failures.
AI-written summary · about
chapters (31)
- 0:00Start
- 2:31Visual Testing
- 7:07What Is Playwright
- 8:18Cypress
- 10:06Completed Example Code
- 12:22Automating One Test Case
- 13:05Duckduckgo Search
- 15:12Formulate Test Cases
- 15:43Arrange Act Assert
- 17:48Create the Project
- 20:43Playwright Pip Install
- 24:39Install the Browsers for Playwright
- 28:30Visual Studio Code
- 36:47Should You Put Your Test in the Same Repo or a Different Repo
- 37:53Set Up Playwright
- 40:59Browser Context
- 55:17Xpath
- 1:04:08Verification
- 1:17:26Why Selenium
- 1:24:22Web First Assertion
- 1:33:33Explicit Weights
- 1:37:01List Comprehension
- 1:37:37Filtering List Comprehension
- 1:39:10Can You Put Breakpoints in Your Test Cases
- 1:41:03Assertion
- 1:53:06Which Engine Are We Using
- 2:00:47Visual Ai Challenge
- 2:06:23Page Objects
- 2:11:06Managing the Test Data Nightmare
- 2:12:22Instance Variables
- 2:17:03Search Method
related talks
09mWeb Testing with Playwright and Python in 10 Minutes Flat
26mAutomated E2E Testing with Playwright and Python
35mState of end-to-end testing for modern web applications
30mTesting Web Applications with Playwright
39mTesting Web Applications with Playwright
30mPlaywright: The Tool That Will Revolutionize End-to-End Testing
41mTesting Web Applications with Playwright
18mPlaywright in 1/2 hour. Or less.
