Pytest + Selenium: A Match for Testing
summary
Live demos combine pytest 3.0.6, WebDriver + Firefox, and Selenium bindings to automate real sites, showing test code that opens CNN, finds elements by id/link text, clicks and fills forms, and uses explicit waits (five seconds) to avoid timing flakes. Examples show using @pytest.mark to select or skip tests, xfail semantics, reading tracebacks to locate failing lines, and several demos that fail then get fixed so the automation actually runs end to end.
AI-written summary · about
chapters (8)
- 0:00Workshop introduction
- 5:15Software and tool setup
- 10:48Browser driver configuration
- 19:52Interacting with web elements
- 29:17Handling browser exceptions
- 37:23Advanced test automation
- 49:22Functional attribute marking
- 59:15Advanced skipping and errors
related talks
22mAn Introduction to Selenium WebDriver with Python
01h 53mHands-On Web UI Testing
01h 45mHands-On Web App Test Automation
39mTesting web apps with Selenium
46mTest Automation with Selenium WebDriver, Java, and JUnit
41mMake yourself comfortable and leverage Selenium with Python
32mAll about web application testing
39mAutomating Your Browser and Desktop Apps
