-
Book Overview & Buying
-
Table Of Contents
Playwright Python and Pytest for Web Automation Testing
By :
Playwright Python and Pytest for Web Automation Testing
By:
Overview of this book
Unlock the full potential of web automation testing using Playwright and Pytest in Python. This course takes you from installation and setup to advanced testing workflows, guiding you through browser automation, UI interaction, and reliable locator strategies. Learn to simulate real-world user actions, manage asynchronous events, and validate application behavior through dynamic and robust tests.
With extensive Pytest integration, you'll structure scalable test suites using fixtures, scopes, and reusable components. Explore file uploads, keyboard events, event listeners, and assertions with hands-on examples. Build advanced frameworks using the Page Object Model, handle authentication scenarios, and test network and API flows effectively.
You’ll also optimize performance through parallel test execution, request interception, and JavaScript disabling. Implement CI/CD automation with GitHub Actions, apply data-driven techniques with pytest.mark.parametrize, and dive into BDD workflows using Behave. Designed for technical professionals, this course ensures you master modern testing practices with practical, maintainable, and production-ready code.
Table of Contents (21 chapters)
Getting Started
Locators
Actions
Events
Automated Mail Checker
Pytest
pytest-playwright Plugin
Playwright Tools
Web-First Assertions
UI Testing Playground
Playwright Fixtures
Page Object Model (POM)
Network Events
Optimization
Tips and Tricks
GitHub API
Continuous Integration (CI)
Data-Driven Testing
Behavior-Driven Development (BDD)