Chapter 6

Advanced Patterns — quiz

5 questions · ~4 min

Chapter 6 quiz

Question 1 of 5

You have 30 specs that each call `page.locator('#email').fill(...)` and `page.locator('#password').fill(...)`. The IDs change. You're refactoring 30 files. Which pattern would have prevented this?