January 2026
Intermediate to advanced
412 pages
8h 38m
English
Welcome to Chapter 2! In modern web applications, the interface is rarely static. Pages update dynamically, content changes on the fly, and even the layout can change depending on user interaction. In this chapter, we dive into the advanced techniques offered by Playwright for dealing with such complexity.
We’ll start by exploring Playwright’s recommended way of finding elements: the getBy* locators. You’ll also learn when it makes sense to switch to more traditional selectors instead. Next, we’ll take a look at how Playwright handles waiting for elements, so your tests stay smooth even when dealing with dynamic content. We’ll also cover how to work with browser alerts, confirms, and prompts. ...
Read now
Unlock full access