Unlock the full potential of web automation testing with Playwright and Pytest in this comprehensive course. From setting up Playwright to mastering advanced testing techniques, you’ll gain hands-on experience in building robust, maintainable test automation frameworks. Learn to write efficient tests, handle complex user interactions, and implement data-driven and behavior-driven testing seamlessly.
![Packt](https://d3njjcbhbojbot.cloudfront.net/api/utilities/v1/imageproxy/http://coursera-university-assets.s3.amazonaws.com/fa/3b9b5304c24cf4aa64054631ee946c/360-360-square.png?auto=format%2Ccompress&dpr=1&w=28&h=28)
![](https://d3njjcbhbojbot.cloudfront.net/api/utilities/v1/imageproxy/https://coursera_assets.s3.amazonaws.com/images/1a4589dccee10648821b7ea23e5fca9a.png?auto=format%2Ccompress&dpr=1&q=80)
![Packt](https://d3njjcbhbojbot.cloudfront.net/api/utilities/v1/imageproxy/http://coursera-university-assets.s3.amazonaws.com/c7/391d0e5f6a4d648dc4f754c5898df7/2.png?auto=format%2Ccompress&dpr=1&h=45)
Playwright Python and Pytest for Web Automation Testing
![Packt - Course Instructors](https://d3njjcbhbojbot.cloudfront.net/api/utilities/v1/imageproxy/https://coursera-instructor-photos.s3.amazonaws.com/2b/9c92f373414941b4a0bbda577bd627/profile.jpg?auto=format%2Ccompress&dpr=1&w=75&h=75&fit=crop)
Instructor: Packt - Course Instructors
Included with
Recommended experience
Recommended experience
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
![](https://d3njjcbhbojbot.cloudfront.net/api/utilities/v1/imageproxy/https://coursera_assets.s3.amazonaws.com/images/31ebcba3851b87d1d8609abf15d0ff7e.png?auto=format%2Ccompress&dpr=1&w=24&h=24)
Add to your LinkedIn profile
February 2025
22 assignments
See how employees at top companies are mastering in-demand skills
![Placeholder](https://d3njjcbhbojbot.cloudfront.net/api/utilities/v1/imageproxy/https://coursera_assets.s3.amazonaws.com/images/74c8747e8210831049cf88dd4eefe26c.png?auto=format%2Ccompress&dpr=2&blur=200&px=8&max-w=320)
![logos of Petrobras, TATA, Danone, Capgemini, P&G and L'Oreal](https://d3njjcbhbojbot.cloudfront.net/api/utilities/v1/imageproxy/https://coursera_assets.s3.amazonaws.com/images/74c8747e8210831049cf88dd4eefe26c.png?auto=format%2Ccompress&dpr=1&w=320&h=70&q=40)
![Placeholder](https://d3njjcbhbojbot.cloudfront.net/api/utilities/v1/imageproxy/https://coursera_assets.s3.amazonaws.com/images/de1a6556fbe605411e8c1c2ca4ba45f1.png?auto=format%2Ccompress&dpr=2&blur=200&px=8&max-w=259)
![Coursera Career Certificate](https://d3njjcbhbojbot.cloudfront.net/api/utilities/v1/imageproxy/https://coursera_assets.s3.amazonaws.com/images/de1a6556fbe605411e8c1c2ca4ba45f1.png?auto=format%2Ccompress&dpr=1&w=259&h=165&q=40)
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](https://d3njjcbhbojbot.cloudfront.net/api/utilities/v1/imageproxy/https://coursera_assets.s3.amazonaws.com/images/de1a6556fbe605411e8c1c2ca4ba45f1.png?auto=format%2Ccompress&dpr=2&blur=200&px=8&max-w=333)
![Coursera Career Certificate](https://d3njjcbhbojbot.cloudfront.net/api/utilities/v1/imageproxy/https://coursera_assets.s3.amazonaws.com/images/de1a6556fbe605411e8c1c2ca4ba45f1.png?auto=format%2Ccompress&dpr=1&w=333&h=215&q=40)
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](https://d3njjcbhbojbot.cloudfront.net/api/utilities/v1/imageproxy/https://coursera-instructor-photos.s3.amazonaws.com/2b/9c92f373414941b4a0bbda577bd627/profile.jpg?auto=format%2Ccompress&dpr=1&w=75&h=75&fit=crop)
Offered by
Recommended if you're interested in Mobile and Web Development
Georgetown University
University of North Texas
University of North Texas
University of Illinois Urbana-Champaign
Why people choose Coursera for their career
![](https://d3njjcbhbojbot.cloudfront.net/api/utilities/v1/imageproxy/https://coursera_assets.s3.amazonaws.com/growth_testimonials/passionate_learner/Felipe_Moitta.png?auto=format%2Ccompress&dpr=1&w=64&h=64&fit=crop)
![](https://d3njjcbhbojbot.cloudfront.net/api/utilities/v1/imageproxy/https://coursera_assets.s3.amazonaws.com/growth_testimonials/passionate_learner/Jennifer_John.png?auto=format%2Ccompress&dpr=1&w=64&h=64&fit=crop)
![](https://d3njjcbhbojbot.cloudfront.net/api/utilities/v1/imageproxy/https://coursera_assets.s3.amazonaws.com/growth_testimonials/passionate_learner/Larry_Tao_Wang_1.png?auto=format%2Ccompress&dpr=1&w=64&h=64&fit=crop)
![](https://d3njjcbhbojbot.cloudfront.net/api/utilities/v1/imageproxy/https://coursera_assets.s3.amazonaws.com/growth_testimonials/passionate_learner/Chaitanya_Anand.png?auto=format%2Ccompress&dpr=1&w=64&h=64&fit=crop)
![](https://d3njjcbhbojbot.cloudfront.net/api/utilities/v1/imageproxy/https://coursera_assets.s3.amazonaws.com/images/dbbd1f929548aa2b3b38c0e6b2887a0f.png?auto=format%2Ccompress&dpr=1&w=1344&h=548&q=30)
![Placeholder](https://d3njjcbhbojbot.cloudfront.net/api/utilities/v1/imageproxy/https://coursera_assets.s3.amazonaws.com/images/7a1c0e2e779c1ff27cae62480adfe003.png?auto=format%2Ccompress&dpr=2&blur=200&px=8&max-w=120)
![Coursera Plus](https://d3njjcbhbojbot.cloudfront.net/api/utilities/v1/imageproxy/https://coursera_assets.s3.amazonaws.com/images/7a1c0e2e779c1ff27cae62480adfe003.png?auto=format%2Ccompress&dpr=1&w=120&h=15&q=40)
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
![](https://d3njjcbhbojbot.cloudfront.net/api/utilities/v1/imageproxy/https://coursera_assets.s3.amazonaws.com/images/5f44d3cc170f76b9fadb15e8592d4411.png?auto=format%2Ccompress&dpr=1&w=1344&h=548&q=30)
Advance your career with an online degree
Earn a degree from world-class universities - 100% online
![](https://d3njjcbhbojbot.cloudfront.net/api/utilities/v1/imageproxy/https://coursera_assets.s3.amazonaws.com/images/653449eb209c5cc24d2935ed5a0f18cd.png?auto=format%2Ccompress&dpr=1&w=1344&h=548&q=30)
Join over 3,400 global companies that choose Coursera for Business
Upskill your employees to excel in the digital economy
Frequently asked questions
Yes, you can preview the first video and view the syllabus before you enroll. You must purchase the course to access content not included in the preview.
If you decide to enroll in the course before the session start date, you will have access to all of the lecture videos and readings for the course. You’ll be able to submit assignments once the session starts.
Once you enroll and your session begins, you will have access to all videos and other resources, including reading items and the course discussion forum. You’ll be able to view and submit practice assessments, and complete required graded assignments to earn a grade and a Course Certificate.