Playwright · Junior · Question 74 of 75

How do you pause a test at a certain line to inspect the page?

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.

Further reading

Problem with a question

Playwright · Junior · question 74

Test yourself

Take the Playwright · Junior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz