Playwright in 1/2 hour. Or less.
summary
Demo tests automate a local registration app with three text boxes, checkboxes and a thank‑you page and run headless by default. Playwright for Python integrates with pytest using a Sync API with page fixture, avoids Selenium’s stale‑element traps by locating elements at use time with built‑in timeouts, and exposes HTTP via playwright.request.new_context so UI tests can assert backend state. It includes a code generator produces runnable but noisy code that needs refactoring.
AI-written summary · about
chapters (11)
- 0:00Introduction to Playwright
- 1:26What is Playwright
- 3:37How Playwright works
- 5:42First test example
- 7:47Locators and dynamic elements
- 10:39Playwright philosophy
- 12:06API support in tests
- 13:29Fixtures for grouping
- 15:36Code generator demo
- 16:39Verdict and recommendations
- 17:42Q&A and resources
related talks
26mAutomated E2E Testing with Playwright and Python
09mWeb Testing with Playwright and Python in 10 Minutes Flat
39mTesting Web Applications with Playwright
20mPlaywright or Selenium? The Modern Approach to UI Test Automation
03h 15mAwesome Modern Web Testing with Playwright
41mTesting Web Applications with Playwright
30mPlaywright: The Tool That Will Revolutionize End-to-End Testing
12mPlay It Right With Playwright
