~/talk

Awesome Modern Web Testing with Playwright

Talkat PyCon US 2022 · 2022-04-27..05-03· [testing]
slides:none on file

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

  1. 0:00Start
  2. 2:31Visual Testing
  3. 7:07What Is Playwright
  4. 8:18Cypress
  5. 10:06Completed Example Code
  6. 12:22Automating One Test Case
  7. 13:05Duckduckgo Search
  8. 15:12Formulate Test Cases
  9. 15:43Arrange Act Assert
  10. 17:48Create the Project
  11. 20:43Playwright Pip Install
  12. 24:39Install the Browsers for Playwright
  13. 28:30Visual Studio Code
  14. 36:47Should You Put Your Test in the Same Repo or a Different Repo
  15. 37:53Set Up Playwright
  16. 40:59Browser Context
  17. 55:17Xpath
  18. 1:04:08Verification
  19. 1:17:26Why Selenium
  20. 1:24:22Web First Assertion
  21. 1:33:33Explicit Weights
  22. 1:37:01List Comprehension
  23. 1:37:37Filtering List Comprehension
  24. 1:39:10Can You Put Breakpoints in Your Test Cases
  25. 1:41:03Assertion
  26. 1:53:06Which Engine Are We Using
  27. 2:00:47Visual Ai Challenge
  28. 2:06:23Page Objects
  29. 2:11:06Managing the Test Data Nightmare
  30. 2:12:22Instance Variables
  31. 2:17:03Search Method
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.