Featured resource
2026 Tech Forecast
2026 Tech Forecast

Stay ahead of what’s next in tech with predictions from 1,500+ business leaders, insiders, and Pluralsight Authors.

Get these insights

Testing with Playwright in Python

Course Summary

The Testing with Playwright in Python course will equip participants with the ability to leverage Playwright's low-code features, like the Codegen test generator, to accelerate test creation. The course then focuses on how to author, run, and debug these end-to-end tests for modern web applications using Playwright within a Python environment.

Prerequisites:

In order to succeed in this course, participants will need:

  • Proficiency in Python
  • Familiarity with web application concepts (HTML, CSS)
Purpose
Learn Playwright's low-code features to author, run, and debug end-to-end tests
Audience
Any IT professional interested in utilizing low-code to accelerate test creation
Role
QA Engineers | QA Testers
Skill level
Intermediate
Style
Lecture | Hands-n Activities | Labs
Duration
2 days
Related technologies
Python | HTML | CSS

 

Learning objectives
  • Describe the core concepts and architecture of Playwright
  • Use the Playwright Codegen tool to record user actions and accelerate test creation
  • Set up a Playwright Python testing project
  • Author and refi ne E2E tests in Python using Playwright locators, actions, and assertions
  • Implement test organization and page object model patterns
  • Debug failed tests and analyze results using the Trace Viewer

What you'll learn:

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 

Dive in and learn more

When transforming your workforce, it’s important to have expert advice and tailored solutions. We can help. Tell us your unique needs and we'll explore ways to address them.

Let's chat

By clicking submit, you agree to our Privacy Policy and Terms of Use.