Web Testing with Playwright and Python in 10 Minutes Flat
summary
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
chapters (8)
- 0:00Introduction
- 0:28Environment setup
- 1:29Using code generator
- 2:30Structuring the test project
- 3:35Understanding architecture
- 4:23Developing test logic
- 6:16Adding assertions
- 8:10Running the tests
related talks
03h 15mAwesome Modern Web Testing with Playwright
26mAutomated E2E Testing with Playwright and Python
18mPlaywright in 1/2 hour. Or less.
39mTesting Web Applications with Playwright
30mTesting Web Applications with Playwright
30mPlaywright: The Tool That Will Revolutionize End-to-End Testing
35mState of end-to-end testing for modern web applications
28mTesting Web Applications with Playwright
