In this Testing with Playwright in Python course, you'll learn:
Introduction to E2E Testing with Playwright
- What is End-to-End Testing
- Understanding Playwright's role and benefits
- Comparing Playwright to other tools
- Exploring the Playwright architecture
Setup and Low-Code Test Generation
- Initializing a new test project with pytest
- Managing dependencies and virtual environments
- Introduction to Codegen (the "no-code" recorder)
- Recording and running a first test with Codegen
- Understanding the limitations of Codegen and the need for codeÂ
Foundational Test Authoring in Python
- Refining Codegen output into a robust test
- Understanding the Page and BrowserContext
- Using Locators to find elements
- Best practices for reliable locators
- Performing basic actions like clicks, text input, and navigation
- Writing assertions to validate application stateÂ
Introduction to Debugging with Visual Tools
- Using the Playwright Inspector
- Introduction to the Trace Viewer
- Analyzing test reports, screenshots, and videosÂ
Advanced Test Authoring and Structuring
- Grouping tests and managing test flow
- Handling authentication and test state
- Understanding and using pytest fixtures
- Introduction to the Page Object Model (POM) patternÂ
Advanced Debugging and Test Strategies
- Advanced Trace Viewer analysis
- Understanding and handling flaky tests
- Running tests in parallel
- Emulating devices, viewports, and color schemesÂ