Playwright · Junior · Question 74 of 75
How do you pause a test at a certain line to inspect the page?
- 1Add
await page.stop()before the line - 2Add
debugger;and run in headless mode - 3Add
await page.pause()and run headed
Show the answer
Correct answer: Add await page.pause() and run headed
Explanation
page.pause() opens the Playwright Inspector, where you can explore locators and resume step by step.