Debugging and Reporting MCQ Mock Test for Playwright Python (200 Questions)

← All Playwright Python mock interview topics

Test your knowledge of Debugging and Reporting with a timed Playwright Python MCQ mock test. Each attempt gives you 20 random questions in 20 minutes from a 200-question bank covering debugging with the Playwright Inspector, PWDEBUG and page.pause, breakpoints, console and page errors, headed and slow-motion runs, tracing with pytest-playwright and the Trace Viewer, screenshots and videos on failure, pytest-html reports and Allure reports with allure-pytest. Submit to see your score, the correct answers and an explanation for every question.

Advertisement

What this mock test covers

The questions follow Module 11 of the free Playwright with Python & Pytest tutorial. The Python lessons for this module are on the way; until then, revise with these related tutorials:

Advertisement

Sample questions with answers

  • Q. Which environment variable opens the Playwright Inspector when tests run?
    Answer: PWDEBUG=1
    It runs headed, with no timeout, and pauses at the start.
  • Q. How do you set PWDEBUG for one run in PowerShell?
    Answer: $env:PWDEBUG=1; pytest -s
    export is for bash shells.
  • Q. How do you set PWDEBUG for one run in bash?
    Answer: PWDEBUG=1 pytest -s
    The prefix sets it for that command only.
  • Q. What does page.pause() do?
    Answer: Stops the script and opens the Inspector so you can step through and pick locators
    Works in headed mode; in headless it has nothing to show.
  • Q. Which mode should you run in to use page.pause() effectively?
    Answer: Headed, e.g. pytest –headed
    The Inspector needs a visible browser.

Ready for more? Go back to the Playwright Python mock interview dashboard to track your overall interview readiness.

Advertisement

Frequently asked questions

How many questions does the Debugging and Reporting mock test have?

The question bank has 200 questions. Each test picks 20 at random, favouring questions you have not seen, so about 10 attempts cover the full bank.

What is the pass mark?

You pass a test with 70% or more, which is 14 of 20 questions correct.

Can I retake the test?

Yes. Retake as often as you like. Every retake draws a fresh set of 20 questions and counts toward your 20-exam readiness target.