Special offers now — see discounted courses.
day
:
hour
:
min
:
sec
See special offers
Playwright Essential Training: Abstractions, Fixtures, and Complex Scenarios

Playwright Essential Training: Abstractions, Fixtures, and Complex Scenarios

4h 10mIntermediate2025-05-29

Authors

Butch Mayhew

Butch Mayhew

Course details

Playwright is a newer tool that has joined the ranks of Cypress and Selenium in open-source automation tooling. Playwright works right out of the box, and its comprehensive feature set allows testers and developers to quickly create new test automation projects without having to rely on combining multiple libraries and tools together. Whether you are a manual tester looking to dip your toes into test automation or a seasoned test automation engineer, check out this course to get hands-on experience with the top features that make Playwright a great choice for your automated tests. Instructor Butch Mayhew takes you through some advanced features and covers best practices for writing, running, and maintaining tests as you scale with Playwright.

Learning objectives
Decide the best way to create and manage test data within a Playwright project.
Recommend the right types of abstractions to make with a Playwright project.
Create custom page objects and fixtures within your Playwright project.
Design tests that utilize the different network interceptions, mocks, and modifications within a Playwright test.
Determine the necessary Playwright test and project configurations needed to make your Playwright project efficient.

Skills covered

Microsoft PlaywrightSoftware TestingEssential TrainingMicrosoftSoftware Development

Concepts

0. Introduction

  • 01 - Level up your Playwright skills - Complex scenarios simplified
  • 02 - What you need to know
  • 03 - Using the GitHub exercise files
  • 04 - Cloning the repository and installation
  • 05 - Overview of the website under test

1. Abstractions in Playwright

  • 06 - Abstractions - Pros and cons
  • 07 - Creating a page object in Playwright
  • 08 - Using a page object in Playwright
  • 09 - Overview of test data management in Playwright
  • 10 - Creating a data factory for Playwright tests
  • 11 - Creating helpers for Playwright tests
  • 12 - Creating custom assertions for Playwright tests
  • 13 - Managing TypeScript config
  • 14 - Challenge - Create a test using data factory and helper Functions
  • 15 - Solution - Create a test using data factory and helper functions

2. Fixtures in Playwright

  • 16 - Overview of Playwright fixtures
  • 17 - Creating a fixture in Playwright
  • 18 - Using a fixture in Playwright tests
  • 19 - Overview of advanced fixtures in Playwright
  • 20 - Implementing an advanced fixture in Playwright
  • 21 - Challenge - Update message test to use fixtures
  • 22 - Solution - Update message test to use fixtures

3. Mocking and Emulation in Playwright

  • 23 - Overview of network routing in Playwright
  • 24 - Intercepting HTTP requests with Playwright
  • 25 - Mocking HTTP responses with Playwright
  • 26 - Browser emulation in Playwright
  • 27 - Localization and geolocation in Playwright
  • 28 - Injecting JavaScript in Playwright
  • 29 - Challenge - Mocking and emulation in Playwright
  • 30 - Solution - Mocking and emulation in Playwright

4. Customizing the Playwright Config

  • 31 - Running a webserver during a Playwright test
  • 32 - Optimizing Playwright - Workers and sharding
  • 33 - Retrying tests in Playwright
  • 34 - Overview of timeouts in Playwright

5. Handling Complex Scenarios and Interactions in Playwright

  • 35 - Working with multiple windows and popups in Playwright
  • 36 - Working with alerts and dialogs in Playwright
  • 37 - Working with uploads and downloads in Playwright
  • 38 - Working with challenging elements in Playwright

Conclusion

  • 39 - Next steps

Related courses

Related learn paths

About us

LyndaKade is a leading learning platform that helps people learn business, software, technology, and creative skills to achieve personal and professional goals.

Phone numberAparat ChannelTelegram SupportTelegram ChannelInstagram Page

All rights to this site belong to LyndaKade.

Terms of Service|Privacy Policy

نماد الکترونیک enamad در صورت اتصال با آی‌پی داخل کشور، نمایش داده خواهد شد.
logo-samandehi - لوگو ساماندهی
zarinpal
zibal