← All Playwright Python mock interview topics
Test your knowledge of Assertions, Waits and Screenshots with a timed Playwright Python MCQ mock test. Each attempt gives you 20 random questions in 20 minutes from a 200-question bank covering web-first assertions with expect, soft assertions and timeouts, actionability checks and auto-waiting, explicit waits for navigation, elements, JavaScript conditions and network responses, screenshots, videos and traces with pytest-playwright, the Trace Viewer, visual regression testing with Pillow and pixelmatch, and ARIA snapshots. Submit to see your score, the correct answers and an explanation for every question.
What this mock test covers
The questions follow Module 5 of the free Playwright with Python & Pytest tutorial. Revise these lessons if a question catches you out:
- Playwright Python Assertions with expect
- Auto-Waiting and Explicit Waits in Python
- Screenshots, Videos and Traces on Failure
- Visual Regression Testing in Python
Sample questions with answers
- Q. What makes Playwright's expect() assertions 'web-first'?
Answer: They retry until the condition passes or the timeout runs out
Web-first assertions wait for the page, like a human tester would. - Q. What is the default timeout of an expect() assertion in Playwright Python?
Answer: 5 seconds
Change it with timeout= or expect.set_options(timeout=…). - Q. Which objects can you pass to expect() in Playwright Python?
Answer: A Page, a Locator or an APIResponse
For plain Python values, use pytest's assert. - Q. Which assertion checks the page title?
Answer: expect(page).to_have_title(…)
Pass the page itself for page-level assertions. - Q. How do you check that the URL contains /automation-practice-page/ without matching it exactly?
Answer: Pass re.compile(r'/automation-practice-page/') to to_have_url
A plain string must match the whole URL exactly.
Ready for more? Go back to the Playwright Python mock interview dashboard to track your overall interview readiness.
Frequently asked questions
How many questions does the Assertions, Waits and Screenshots 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.