Playwright Testing Technical Round Questions & Answers
40 questions for the technical round stage — 4 easy, 33 medium, 3 hard.
About the technical round round
The technical round is the core of a Playwright Testing interview: concept questions with follow-ups, a live hands-on task and a deep dive into one of your projects. Interviewers check depth, not just definitions.
Tips for the technical round round
- Say your approach out loud before you start writing.
- After a correct answer, expect 'why?' and 'what if?' follow-ups; go one level deeper than the question.
- Pick one project you can explain end to end, including what you would do differently.
- If you get stuck, explain what you would try next instead of going silent.
How do you structure environment-specific configs in Playwright?
Show answer
Component tests render without any styling. What is missing?
Show answer
How do you verify a page's URL and title after navigation?
Show answer
What can automated accessibility tools not catch?
Show answer
How do you handle multiple tabs or pop-ups?
Show answer
How do you handle shadow DOM?
Show answer
How do you return a fake JSON response that depends on the request body?
Show answer
How do you take screenshots and videos?
Show answer
Show a config with a setup project and a browser project that reuses its login.
Show answer
Promise.all vs Promise.allSettled vs Promise.race?
Show answer
How do you tag and filter tests?
Show answer
What is testInfo and what can you do with it?
Show answer
How do you measure API response time?
Show answer
Why choose Playwright over Selenium?
Show answer
Write an API test with the request fixture.
Show answer
How do access modifiers help in page object classes?
Show answer
Component tests fail because imports like @/utils cannot be resolved, though the app builds fine. How do you fix it?
Show answer
How does visual testing work in Playwright?
Show answer
How do you run Playwright in GitHub Actions?
Show answer
What does eslint-plugin-playwright help with?
Show answer
What does a Playwright trace contain?
Show answer
What is the difference between route.fulfill, route.continue and route.abort?
Show answer
What are fixtures in Playwright?
Show answer
How do you test file downloads and verify their content?
Show answer
What are discriminated unions and how can they model API responses?
Show answer
How do you handle token refresh in long API test runs?
Show answer
Test data is left behind when tests fail midway. How do you guarantee cleanup?
Show answer
How do you record a trace manually with the tracing API?
Show answer
An API returns 200 but the body contains an error field. How should your test catch this?
Show answer
How can you apply extra CSS only while a screenshot is taken?
Show answer
Baselines are always rendered in Docker, yet the repo has separate Windows and Linux image files. How do you keep one baseline per browser?
Show answer
What are the options for the trace setting in playwright.config?
Show answer
Why should the Playwright Docker image version match your package version?
Show answer
What is npm and package.json?
Show answer
How do you use test.step and test annotations?
Show answer
The app polls a status endpoint every few seconds. How do you test the change from Pending to Done?
Show answer
What does the waitUntil option of page.goto do?
Show answer
How do you test that duplicate POST requests do not create duplicate orders?
Show answer
Does headless mode behave differently from headed mode?
Show answer
Frequently asked questions
What happens in the Playwright Testing technical round round?
The technical round is the core of a Playwright Testing interview: concept questions with follow-ups, a live hands-on task and a deep dive into one of your projects. Interviewers check depth, not just definitions.
How do I clear the technical round round?
Say your approach out loud before you start writing. After a correct answer, expect 'why?' and 'what if?' follow-ups; go one level deeper than the question. Pick one project you can explain end to end, including what you would do differently.
Which round comes next?
A typical order is online assessment, telephonic screening, one or two technical rounds, a managerial round and HR. Use the other round pages to practise each stage.