Playwright Testing Interview Questions for Experienced Professionals (₹10–12 LPA)
40 questions with answers for experienced professionals — 4 easy, 31 medium, 5 hard.
What ₹10–12 LPA interviews expect
About ₹10–12 LPA Playwright Testing roles
Roles in the ₹10–12 LPA band are typically for experienced professionals. Interviewers check whether you can already do the work expected at this level, so questions here are weighted towards API Testing (5), Network Mocking (5), Framework Design and CI/CD (4), Playwright Core (4).
Salary bands are indicative only. The same skills can pay differently across cities, company types and negotiation.
What does eslint-plugin-playwright help with?
Show answer
How do you record a trace manually with the tracing API?
Show answer
How do you handle file uploads and downloads?
Show answer
A component test passes alone but fails when the full component suite runs. What do you check?
Show answer
How do you inspect a specific network request in the trace viewer?
Show answer
What is the difference between a type and an enum in TypeScript?
Show answer
Write a GitHub Actions job that runs the suite in four shards.
Show answer
How do you mock API calls made by a component in a component test?
Show answer
In what order do hooks and fixtures run?
Show answer
How do you handle iframes in Playwright?
Show answer
How do you wait for a network response in Playwright?
Show answer
How do you combine API and UI tests?
Show answer
When should you choose a component test over an end-to-end test?
Show answer
How do you run one group of tests serially while the rest of the suite runs in parallel?
Show answer
How do you use test.step and test annotations?
Show answer
How do you mock an API response?
Show answer
How do you return a fake JSON response that depends on the request body?
Show answer
What does outputDir contain and why does it matter in parallel runs?
Show answer
What happens if you forget an await?
Show answer
What reporters does Playwright provide?
Show answer
What does page.route do?
Show answer
How do you mock network traffic using a HAR file?
Show answer
How do you shard tests across machines?
Show answer
A toast message disappears after two seconds and the assertion on it is flaky. How do you test it reliably?
Show answer
The app logs in through a third-party OAuth pop-up. How do you automate it?
Show answer
What does getByRole do and why is it the first-choice locator?
Show answer
Design a Playwright framework for a 500-test suite.
Show answer
How do you validate response headers?
Show answer
What is the difference between click and dispatchEvent?
Show answer
Describe a time you designed a fixture layer that other teams adopted.
Show answer
How do you test offline behaviour?
Show answer
What does the optional chaining operator do?
Show answer
How do you run the same visual tests at mobile, tablet and desktop sizes?
Show answer
Where does Playwright store baseline screenshots and how are the files named?
Show answer
What does the reportSlowTests option do?
Show answer
Tell me about a time an accessibility check caught a real issue before release.
Show answer
How do you test the difference between 401 and 403 responses?
Show answer
What are the trade-offs of trace 'on' versus 'retain-on-failure' in CI?
Show answer
What is the difference between test-scoped and worker-scoped fixtures?
Show answer
Frequently asked questions
What do Playwright Testing interviews for ₹10–12 LPA roles test?
At ₹10–12 LPA the focus is usually on: end-to-end project ownership, performance and quality thinking, stakeholder communication, scenario-based questions. This page's set is weighted towards API Testing (5), Network Mocking (5), Framework Design and CI/CD (4), Playwright Core (4).
Which companies pay ₹10–12 LPA for Playwright Testing roles?
Pay depends on company type, city, skills and negotiation, not only experience. Use the company-wise pages to practise for the specific employers you are targeting, and treat salary bands as a rough guide.
How should I prepare for a ₹10–12 LPA Playwright Testing interview?
Solve every question here without looking at the answer first, mark the ones you miss, save them to Last-Minute Revision and revise them the night before. Prepare two project stories that show impact at the level expected for ₹10–12 LPA.