-
Book Overview & Buying
-
Table Of Contents
Hands-On Automated Testing with Playwright
By :
When you’re building and running automated tests, it’s helpful to know what’s going on behind the scenes and even more helpful when things don’t go as planned. That’s where this chapter comes in.
We’re going to explore two important topics: headless testing and debugging in Playwright. Headless mode is great when you want your tests to run fast and quietly in the background. It’s perfect for continuous integration or large test suites. But sometimes, you need to actually see what’s happening on the screen. That’s when headful mode (with the browser window open) comes in handy.
We’ll also walk through some awesome debugging tools Playwright gives you, such as the Inspector, UI Mode, and ways to capture screenshots and videos of your tests in action. These tools make it way easier to figure out what went wrong and fix issues quickly.
By the end of this chapter, you’...