~/talk

Web Testing with Playwright and Python in 10 Minutes Flat

Talkat TestFlix 2022 · 2022-10-08..10-09· [testing, web-platform]
slides:none on file

Quick practical guide that sets up Playwright with Python, pytest and the pytest-playwright plugin, runs `playwright install` to get chromium/webkit/firefox browser projects, and shows the code-generator then hand-writes a test that uses the page fixture to navigate DuckDuckGo, fill the search input, click search and assert with Playwright’s `expect` — checking the page title, input value and that the results collection has count 10. Runs with `python -m pytest` (headed shown) and points to a GitHub starter repo.

AI-written summary · about

  1. 0:00Introduction
  2. 0:28Environment setup
  3. 1:29Using code generator
  4. 2:30Structuring the test project
  5. 3:35Understanding architecture
  6. 4:23Developing test logic
  7. 6:16Adding assertions
  8. 8:10Running the tests
~/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.