I really loved Faraz Kelhini & Butch Mayhew's new book, "Hands on Automated Testing with Playwright: Create fast, reliable, and scalable tests for modern web apps with Microsoft's automation framework".
Butch Mayhew is a Playwright Ambassador, dedicated to helping others, and it shows! I fully recommend this book -- and Butch's many LinkedIn Learning Playwright courses -- for those attempting to understand Playwright.
The real beauty of the book is that it feels like only the start of a continuing conversation:
- Sample code is included: Just like Butch's courses, it provides a GitHub repo chock-full of code examples where Butch and Faraz walks through the examples chapter by chapter so the reader can see implemented the concepts that they both explain.
- Reference links is included: Need to do a deep dive on a topic? The authors have included links to the primary sources, such as Faraz Kelhini's article, Understanding Shadow Dom. (2019)
- QR codes that connect to the Playwright community: Want to connect with the Playwright community at large? See a Playwright community calendar? Scan the included QR codes in the books.
It's no problem if you have never used Playwright before. Readers are walked through installing the toolsets, writing & running their first tests, setting up VS Code, and how to configure Playwright settings.
The book also walks the reader through chapters on AI-Powered Test Generation using GitHub CoPilot and the Playwright Model Context Protocol (MCP), generating tests with Playwright's Codegen feature.
Thank you so much for the advance copy, Butch!
Practicing Playwright:
- Part One: Time to Practice Playwright!
- Part Two: New Playwright Course: Playwright Essential Training by Butch Mayhew
- Part Three: Hands on Automated Testing with Playwright by Butch Mayhew is the start of a wonderful conversation with the Playwright community!
- Part Four: What happens when you pair Playwright with something other than TypeScript?
- Part Five: Logging in by Storing and Using an Authentication Cookie in Your Automated Tests
- Part Six: How to Detect Broken Images On Your Site
- Part Seven: Dynamically Creating Test Data with a DataFactory
- Part Eight: Visual Testing With Playwright
- Part Nine: API Testing, Intercepting Network Requests, and Mocking APIs
- Source Code: https://github.com/tjmaher/practicing-playwright
Happy Testing!
-T.J. Maher
Software Engineer in Test
BlueSky | YouTube | LinkedIn | Articles
GitHub repo
