Playwright's "page" object provides multiple methods to interact with DOM elements ("click", "fill", etc.). But these methods come with one downside: they're not strict. Learn in this video why strict mode is important and how locator method help to write better test cases.
While Playwright uses Jest's "expect" library for test assertions it adds additional functionality to it. Web-first assertions make web UI testing more convenient. Learn what they're about in this week's Playwright tip!
The new GitHub Sync feature just opened up for public beta. Put your Browser check code into version control and automatically synchronize your GitHub code with Checkly.
Debugging test cases that only occasionally fail or "work on your machine" can be tough. Luckily, Playwright allows you to record all your script's steps and travel back in time using the Trace Viewer. Learn in this video how trace all your Playwright scripts.
If you're running hundreds of Playwright scripts in your monitoring infrastructure you know that slow scripts lead to long-running test suites. Every Playwright script should run as quickly as possible. In this video, Stefan explains how to use Playwright's request interception feature to block requests and load websites faster.
If you're using hardcoded values such as a user agent or viewport dimension to configure a Playwright session, there's a better way! Learn in this tip how to use and access Playwright's provided device settings.
Debugging a headless automation script can be tough. Luckily, Playwright comes with a built-in inspector tool to make all browser actions easier to debug.
If you're leveraging an Edge geolocation feature and serve different behavior depending on the request origin, you want to guarantee your application doesn't break for some users over time. Learn how to use Checkly to monitor and test your Vercel Edge functions from different global locations and get alerted when your Edge handling broke. Resources.
Playwright comes with the ability to record and generate test case using the command "playwright codegen". In this video Stefan shows how to quickly record a script in under one minute.