8
Headless Testing and Debugging
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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access