~/talk

Playwright in 1/2 hour. Or less.

Talkat XtremePython 2024 Online Conference · on Tuesday, 2024-11-19· [testing, web-platform]
slides:none on file

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

  1. 0:00Introduction to Playwright
  2. 1:26What is Playwright
  3. 3:37How Playwright works
  4. 5:42First test example
  5. 7:47Locators and dynamic elements
  6. 10:39Playwright philosophy
  7. 12:06API support in tests
  8. 13:29Fixtures for grouping
  9. 15:36Code generator demo
  10. 16:39Verdict and recommendations
  11. 17:42Q&A and resources
~/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.