Packt
Playwright Python and Pytest for Web Automation Testing
Packt

Playwright Python and Pytest for Web Automation Testing

Included with Coursera Plus

Gain insight into a topic and learn the fundamentals.
Intermediate level

Recommended experience

16 hours to complete
3 weeks at 5 hours a week
Flexible schedule
Learn at your own pace
Gain insight into a topic and learn the fundamentals.
Intermediate level

Recommended experience

16 hours to complete
3 weeks at 5 hours a week
Flexible schedule
Learn at your own pace

What you'll learn

  • Set up and utilize Playwright for seamless browser automation.

  • Master Pytest for writing modular and data-driven tests.

  • Integrate CI/CD pipelines with Playwright and GitHub Actions.

  • Implement behavior-driven testing (BDD) for comprehensive test coverage.

Details to know

Shareable certificate

Add to your LinkedIn profile

Recently updated!

February 2025

Assessments

22 assignments

Taught in English

See how employees at top companies are mastering in-demand skills

Placeholder
 logos of Petrobras, TATA, Danone, Capgemini, P&G and L'Oreal
Placeholder
Coursera Career Certificate

Earn a career certificate

Add this credential to your LinkedIn profile, resume, or CV

Share it on social media and in your performance review

Placeholder
Coursera Career Certificate

There are 21 modules in this course

In this module, we will introduce the foundational aspects of Playwright, including installation, accessing its documentation, and performing basic browser operations. By the end, you'll have a running setup and an understanding of how Playwright scripts are structured.

What's included

5 videos1 reading1 assignment

In this module, we will dive into locators—the backbone of web element interactions in Playwright. From basic locators to CSS selectors and XPath, you’ll learn a variety of techniques to accurately identify and work with web elements.

What's included

12 videos1 assignment

In this module, we will explore how to perform various actions in a browser using Playwright. From mouse actions to keyboard shortcuts, you'll learn to simulate user behaviors and interact with dynamic web components.

What's included

7 videos1 assignment

In this module, we will focus on managing events and synchronization in Playwright. Learn to handle complex scenarios like auto-waiting, dialogs, and asynchronous operations to ensure robust test execution.

What's included

8 videos1 assignment

In this module, we will tackle authentication workflows in Playwright. You’ll learn to handle sign-ins, save session states, and reuse them for seamless and secure automation across test cases.

What's included

3 videos1 assignment

In this module, we will guide you through building an automated mail checker using Playwright. Learn how to locate emails, extract data, and process them directly from the terminal for robust email automation.

What's included

6 videos1 assignment

In this module, we will integrate Pytest into Playwright testing workflows. Discover how to write, run, and manage tests efficiently while leveraging Pytest's powerful features like fixtures and state management.

What's included

8 videos1 assignment

In this module, we will explore the pytest-playwright plugin, which bridges Pytest and Playwright for seamless testing. Learn how to configure the plugin, write tests, and utilize hooks to enhance your testing setup.

What's included

5 videos1 assignment

In this module, we will delve into the various tools Playwright offers to enhance your automation testing experience. From debugging with trace viewers to capturing test evidence, you'll maximize your test efficiency.

What's included

4 videos1 assignment

In this module, we will focus on web-first assertions in Playwright. Learn to validate element properties, states, and UI behaviors with precision, ensuring your tests cover all functional aspects.

What's included

7 videos1 assignment

In this module, we will explore Playwright's capabilities in the UI Testing Playground. You'll tackle real-world challenges such as handling dynamic IDs, Ajax requests, and visibility checks, strengthening your UI testing skills.

What's included

16 videos1 assignment

In this module, we will discuss Playwright fixtures and their role in organizing test code. Learn to customize browser contexts and leverage function and session-scoped fixtures for efficient testing.

What's included

4 videos1 assignment

In this module, we will introduce the Page Object Model (POM) for UI testing. Discover how to organize test scripts, improve maintainability, and reduce duplication using POM concepts and Playwright.

What's included

5 videos1 assignment

In this module, we will explore Playwright's capabilities in handling network events. Learn to manage requests, modify responses, and test network-dependent functionalities effectively.

What's included

3 videos1 assignment

In this module, we will demonstrate how to use Playwright for API testing. From making API calls to mocking data, you’ll learn to integrate API tests seamlessly into your automation workflows.

What's included

5 videos1 assignment

In this module, we will focus on optimizing Playwright tests. Learn techniques like request interception, JavaScript disabling, and parallel execution to enhance test efficiency and coverage.

What's included

3 videos1 assignment

In this module, we will share valuable tips and tricks to improve your Playwright testing. From command-line arguments to debugging and device emulation, you’ll learn techniques to boost productivity.

What's included

4 videos1 assignment

In this module, we will combine Playwright with GitHub API for testing and automation. Learn how to authenticate, make calls, and write tests for GitHub workflows effectively.

What's included

6 videos1 assignment

In this module, we will explore how to integrate Playwright with continuous integration tools. From repository setup to automated testing, you’ll ensure seamless CI workflows for your projects.

What's included

5 videos1 assignment

In this module, we will focus on data-driven testing with Playwright and Pytest. Discover how to handle diverse input scenarios efficiently using parameterization.

What's included

3 videos1 assignment

In this module, we will explore Behavior-Driven Development (BDD) and its application with Playwright. Learn to write human-readable tests and enhance collaboration between teams using the Behave framework.

What's included

5 videos2 assignments

Instructor

Packt - Course Instructors
Packt
567 Courses49,621 learners

Offered by

Packt

Recommended if you're interested in Mobile and Web Development

Why people choose Coursera for their career

Felipe M.
Learner since 2018
"To be able to take courses at my own pace and rhythm has been an amazing experience. I can learn whenever it fits my schedule and mood."
Jennifer J.
Learner since 2020
"I directly applied the concepts and skills I learned from my courses to an exciting new project at work."
Larry W.
Learner since 2021
"When I need courses on topics that my university doesn't offer, Coursera is one of the best places to go."
Chaitanya A.
"Learning isn't just about being better at your job: it's so much more than that. Coursera allows me to learn without limits."
Placeholder
Coursera Plus

Open new doors with Coursera Plus

Unlimited access to 10,000+ world-class courses, hands-on projects, and job-ready certificate programs - all included in your subscription

Advance your career with an online degree

Earn a degree from world-class universities - 100% online

Join over 3,400 global companies that choose Coursera for Business

Upskill your employees to excel in the digital economy

Frequently asked questions