Hands-On Web UI Testing
summary
Hands-on demo shows a runnable Web UI test suite built with Python 3 + pytest + Selenium WebDriver, using the page object model to test DuckDuckGo search. Tests create a fresh ChromeDriver per test with an implicit 10s wait, use a pytest fixture that yields the driver and always calls quit to avoid zombie processes, and a single end-to-end search test runs in ~10–30 seconds; scaling options include pytest-xdist and Selenium Grid for hundreds or 1,500 nightly tests.
AI-written summary · about
chapters (28)
- 0:00Start
- 2:09Agenda
- 3:31Test Project Setup
- 5:53Testing Types
- 8:13The Testing Pyramid
- 11:25Python Developers Survey 2018: Testing Frameworks
- 12:43What is Web UI Testing?
- 14:17Web UI Testing Pros and cons
- 15:43What Makes a "Good" Web UI Test?
- 20:18Solution Sketch
- 22:23Solution Diagram
- 23:35Why Not Use Django Testing Tools?
- 25:01Why Not Use Codeless Tools?
- 26:02Our Web App to Test
- 26:43Everyone Do a Search!
- 30:03Navigate to DuckDuckGo
- 30:16Step 2: Enter a search phrase
- 30:26Verify query on results page
- 31:22Our First Test Case
- 34:59pytest in Our Project
- 36:03Running pytest Tests
- 42:56Our First Test in Comments
- 43:56What is a Page Object?
- 45:41Our Pages Under Test
- 46:44Page Object Class Stubs
- 48:26Add Page Object Calls to the Test
- 58:41Our First Test with Page Objects
- 59:44Selenium WebDriver
related talks
01h 45mHands-On Web App Test Automation
22mAn Introduction to Selenium WebDriver with Python
01h 13mPytest + Selenium: A Match for Testing
03h 15mAwesome Modern Web Testing with Playwright
09mWeb Testing with Playwright and Python in 10 Minutes Flat
42mReliable and Maintainable Webdriver Tests
46mTest Automation with Selenium WebDriver, Java, and JUnit
41mMake yourself comfortable and leverage Selenium with Python
