Playwright Release 1.51: Smarter Debugging, Enhanced Reports & More!
Playwright 1.51 is out and Debbie O'Brien tells us about the latest features that were introduced to make testing even more efficient.
Ruff — The Fastest Python Linter for Playwright with Python
If you write your Playwright tests in Python, you might be interested in leveraging Ruff for code linting. Joan Alejandro Esquivel Montero explains how to do this in a 14-minute video.
Strategic Tagging: Optimizing Your Playwright Test Suite
Playwright v1.42 introduces a new, more convenient way of tagging tests. Meris Stupar gives a fine overview of that with practical examples.
Similarly, Parthiban Rajasekaran describes The Art of Playwright Tags.
How to Avoid Flaky Tests in Playwright
Playwright has quite a few features that help reduce test flakiness, but that might not be enough by itself. Antonello Zanini shows what more you can do.
And here's a handy overview of Playwright's auto-wait is simple and superb by Cerosh Jacob.
Introduction to the first Playwright project
Just starting with Playwright? You may enjoy Kostiantyn Teltov's helpful and thorough guide.
Also, Luciano Renzi shows how to Simplify Tests by Using a Main Page Object Class in Playwright.
Playwright BDD testing — you don't need Cucumber!
Francesco Borzì describes playwright-bdd — a handy tool that converts your BDD scenarios into Playwright tests.
Is It Worth Mocking WebSockets by Playwright?
It's a good question — and a good explanation — especially if you face a similar challenge of testing WebSockets as Andrey Enin does.
Dynamic Class Loading for Page Objects in Playwright Automation
Thananjayan Rajasekaran demonstrates using the Page Object Model in Playwright for flexible scenarios, such as localisation testing.
Also, Marcin Michalak provides some good examples of Automated accessibility test scripts in Playwright.
Building a simple configuration mechanism for your Playwright project
Do you want to make your Playwright test configuration more flexible? Kostiantyn Teltov shows a few tricks to achieve that.
Also, Butch Mayhew wrote a fine guide to Playwright-Cli-Select For Quick Targeted Test Runs via CLI.
Playwright Visual Testing; How Should Things Look?
Maxwell Nyamunda gives a practical overview of Playwright's visual testing feature.
Moreover, Debbie O'Brien has a helpful tip on Playwright Assertions: Avoid Race Conditions with This Simple Fix!