Testing / Playwright Interview questions
Describe the Playwright Inspector?
The Playwright Inspector is a graphical debugging tool that pauses a running test and lets you step through it action by action, rather than reading logs after the fact.
It's launched by setting the PWDEBUG=1 environment variable, or passing --debug to the test command:
PWDEBUG=1 npx playwright test
From the Inspector window you can resume, step over the next action, or explore locators by hovering over elements in the paired browser window, which highlights the matching element and suggests a resilient selector. It also embeds a record mode, so you can capture new interactions directly into the script while debugging an existing test.
More Related questions...