Playwright · Junior · Question 9 of 75
What does npx playwright test --debug do?
- 1Opens the Inspector and pauses so you can step through
- 2Re-runs every failed test with extra retries enabled
- 3Prints all browser console messages to the terminal
Show the answer
Correct answer: Opens the Inspector and pauses so you can step through
Explanation
The Playwright Inspector lets you step through actions, see which element a locator matches and edit locators live. page.pause() stops at a specific line.