🖤 Black Friday! Use code BLACK and get 50% OFF online courses! 🔥

Check Out the Sale
Rafał Podraza
Software Testing

Playwright Practice: 30 Real-World Automation Exercises

Playwright Test Automation: 30 Real-World Exercises in UI, API, E2E Testing, Debugging and Page Object Model

4.8 (72)36 lessons

Buy safely and start learning right away

After purchase you get immediate access, Udemy links and a clear confirmation by e-mail.

Instant accessLinks are available right after payment.
Udemy codeYou redeem the course in your Udemy account.
Secure paymentPayments are handled by Stripe.
InvoiceYou can add invoice details at checkout.

About the course

Playwright Practice: 30 Real-World Automation Exercises is a hands-on course for testers and developers who want to turn their knowledge of Playwright into practical test automation skills. Instead of relying on lengthy theory, you will work through challenges based on scenarios commonly encountered in web applications.

Using a dedicated practice application, you will automate user interfaces, test e-commerce journeys, work with APIs, mock network responses, and investigate failing tests. Each exercise presents an automation problem that you can attempt independently before following a step-by-step solution and comparing approaches.

The exercises progress from everyday browser interactions to a complete end-to-end workflow. You will also explore ways to make your Playwright test suite easier to debug and maintain.

What You Will Learn

  • Use Playwright locators and assertions to identify elements and verify application behavior.
  • Automate login, registration, search, filtering, sorting, shopping cart, and checkout scenarios.
  • Handle dynamic elements, forms, date pickers, dialogs, file operations, iframes, and multiple browser tabs.
  • Send API requests, validate responses, and prepare test data through an API.
  • Intercept and mock network requests, including scenarios involving failed API responses.
  • Combine UI and API interactions in a complete e-commerce end-to-end test.
  • Investigate failures using screenshots, videos, traces, and test reports.
  • Explore the Page Object Model and cross-browser testing as ways to improve a Playwright test suite.

Course Program

The program below groups the course topics into practical learning areas. The 30 exercises provide the core practice, followed by additional tasks, a role-play scenario, and a final knowledge check.

Module 1: Playwright Locators and UI Assertions

Begin with the building blocks of reliable browser automation: finding elements, interacting with them, and checking the results. Practice choosing locators that express what a test is trying to do and writing assertions that verify visible application behavior.

  • Locate elements and interact with common UI controls.
  • Use assertions to check page content and the results of user actions.
  • Practice working with dynamic elements that change during a test.
  • Compare your implementation with the step-by-step exercise solutions.

Module 2: Authentication and User Account Scenarios

Practice automating registration and login flows, which often form the starting point for broader application tests. Focus on the actions a user performs and the evidence that the application has responded as expected.

  • Automate registration and login interactions.
  • Verify the outcomes of authentication-related actions.
  • Consider how account data and browser state affect repeatable tests.

Module 3: Search, Filtering, Sorting, and E-Commerce

Build tests around product discovery and purchasing workflows. These exercises connect individual UI actions into meaningful checks of how an e-commerce application behaves.

  • Automate product search, filtering, and sorting.
  • Check that displayed results reflect the selected actions.
  • Practice adding products to a shopping cart and working with cart operations.
  • Automate checkout steps and verify order confirmation.

Module 4: Forms and Interactive Browser Elements

Work with controls that require different interaction strategies. Practice selecting values, handling browser events, and checking the state of the application after each action.

  • Interact with dropdowns, checkboxes, radio buttons, and date pickers.
  • Handle modal windows and browser dialogs.
  • Automate drag-and-drop interactions.
  • Practice file uploads and downloads.

Module 5: Browser Navigation, Tabs, and State

Explore scenarios that extend beyond a single page. Learn to account for navigation, separate browser contexts, embedded content, and stored application state when designing tests.

  • Work with browser navigation, multiple tabs, and pop-up windows.
  • Interact with content inside iframes.
  • Explore cookies and local storage in automation scenarios.
  • Consider how browser contexts help separate test sessions.

Module 6: API Testing and Test Data Preparation

Use API interactions alongside browser automation to validate responses and prepare the data needed for a test. This approach helps you practice deciding which parts of a scenario belong in the UI and which can be handled through an API.

  • Send API requests and inspect response data.
  • Validate API responses as part of a test scenario.
  • Create test data through APIs before carrying out browser actions.
  • Combine API preparation with UI verification.

Module 7: Network Interception and Mocking

Practice controlling network behavior to test application responses under different conditions. These exercises introduce techniques for examining what happens when a backend response is changed or a request fails.

  • Intercept network requests during a Playwright test.
  • Mock responses to exercise specific application behavior.
  • Test scenarios involving failed API responses.
  • Verify how the user interface responds to the simulated conditions.

Module 8: Complete End-to-End E-Commerce Scenario

Bring the course skills together in a complete e-commerce automation workflow. This scenario combines test data preparation, browser interactions, verification, and debugging artifacts in a journey that reflects a realistic application flow.

  • Create a user and prepare test data through an API.
  • Automate login and product search.
  • Perform shopping cart operations and complete checkout.
  • Verify order confirmation and use debugging artifacts to investigate issues.

Module 9: Debugging and Improving Your Test Suite

Move beyond getting a test to pass. Practice investigating failures and organizing tests so that they are easier to understand and maintain as an application changes.

  • Debug failing Playwright tests using available evidence.
  • Work with screenshots, videos, traces, and test reports.
  • Explore the Page Object Model for organizing page interactions.
  • Practice running tests across multiple browsers and reviewing the results.

Module 10: Additional Practice and Knowledge Check

Reinforce your learning with additional practical tasks and a Playwright Automation Engineer role-play scenario. A final knowledge check gives you an opportunity to review the concepts and techniques covered throughout the course.

  • Apply your skills to additional automation tasks.
  • Work through a realistic automation engineer role-play scenario.
  • Review your understanding in the final knowledge check.

Practical Work and Portfolio Ideas

During the course, you will write Playwright tests against a dedicated practice application and develop a complete e-commerce automation scenario. The work brings together browser automation, API-based data preparation, network mocking, and debugging techniques.

If you want to build a portfolio, use the skills and approaches practiced in the course to create your own test automation project. For example, you could document an e-commerce test suite that covers registration, product search, cart operations, checkout, and API-assisted setup. Only publish code or application materials when you have the necessary permission.

Who Is This Playwright Course For?

  • Manual QA engineers and software testers who know testing fundamentals and want practical experience with browser automation.
  • Test automation engineers who want to practice Playwright scenarios and improve how they debug or organize tests.
  • Developers who want hands-on experience with end-to-end testing of web applications.
  • Playwright beginners with some basic knowledge who are ready to move beyond introductory examples.
  • Technical interview candidates who want to practice explaining and solving realistic automation problems.

Prerequisites

The course is best suited to learners who already understand the basic concepts of Playwright and are comfortable reading and writing code. A basic understanding of web applications and software testing will help you focus on solving the exercises. If you are completely new to programming or Playwright, learn the fundamentals first so you can get more from the practical challenges.

Why Learn Playwright Through Exercises?

Knowing Playwright commands is different from applying them to an application with dynamic elements, browser state, APIs, and unpredictable failures. This course gives you a structured way to practice those decisions: attempt a task, compare your solution with a guided approach, and use what you learn in the next scenario.

Working through a focused set of challenges can reduce the time spent searching for disconnected practice ideas and help you identify gaps in your understanding. The resulting experience is relevant to QA and automation roles where engineers need to write tests, diagnose failures, and maintain coverage across user journeys. Progress and career outcomes depend on your prior knowledge, practice, and the opportunities available to you.

Frequently Asked Questions

Is this Playwright course suitable for beginners?

It is most useful for learners who already know the basics of Playwright and want more practical experience. Manual testers and developers can use the exercises to build confidence, but complete beginners should first become comfortable with programming and introductory Playwright concepts.

What will I automate during the course?

You will work with a dedicated practice application and cover UI interactions, authentication, e-commerce workflows, API requests, network mocking, and debugging. The main exercise section culminates in an end-to-end e-commerce scenario combining API-based preparation with browser automation.

Can I use the course to prepare for a QA automation interview?

Yes. The exercises provide opportunities to practice scenarios and explain decisions involving locators, assertions, API testing, network interception, and debugging. The course also includes an automation engineer role-play scenario. Interview requirements vary, so use the exercises alongside preparation tailored to the role.

How can I check course access and support options?

Access terms and available support can depend on where the course is offered. Check the current course listing or contact the course provider before enrolling for details about access duration and how to ask questions.

Does the course include a certificate?

Certificate availability is not specified in the course information provided. Check the current course listing or ask the course provider before enrolling if a certificate is important to you.

What you will learn

Build automated tests with Playwright
Use locators and assertions
Automate user interactions
Test forms and dynamic elements
Automate e-commerce workflows
Handle tabs, pop-ups, and iframes
Work with uploads and downloads
Test APIs with Playwright
Mock and validate network requests
Debug and improve Playwright tests

Course program

1.Introduction2 lessons
2.Course Setup and Playwright Essentials3 lessons
3.Locators and User Interactions5 lessons
4.E-Commerce Automation7 lessons
5.Advanced UI Components8 lessons
6.Browser Context and Navigation5 lessons
7.API and Network Automation4 lessons
8.Complete Automation Scenario1 lessons
9.Improving the Test Suite3 lessons
10.Final Practice, Role Play, and Knowledge Check2 lessons
11.Role Play1 lessons
12.Final Quiz1 lessons

30-day satisfaction guarantee

If the course is not right for you, you get a full refund.

Frequently Asked Questions (FAQ)

Everything you need to know before purchasing and getting started.

You watch the course on Udemy. Immediately after checkout, you receive a direct access link with a coupon code that permanently binds the course to your Udemy account.

Yes. After completing all lessons and exercises, you receive an official certificate of completion that you can download as a PDF or add to your LinkedIn profile.

Access is lifetime with no expiration. You also get free access to all future course updates and newly added lectures.

Yes. The material is structured step by step from scratch to advanced production patterns, with working code examples and clear explanations.

Yes. Immediately after payment, an invoice without VAT is generated and sent to your email address, ready for download.

Recommended products

AI & ChatGPT for QA Engineers
Bestseller
Software Testing

AI & ChatGPT for QA Engineers

4.5(254)
$9.99$19.99
Exam Preparation: ISTQB Test Automation Engineering
Bestseller
Software Testing

Exam Preparation: ISTQB Test Automation Engineering

4.7(242)
$9.99$19.99
ISTQB Certification Complete Bundle

ISTQB Certification Complete Bundle

Software Testing

4.8(54)
$79.99$319.99
$9.99