Playwright Testing Interview Questions for Senior Specialists (₹15–20 LPA)
40 questions with answers for senior specialists — 3 easy, 29 medium, 8 hard.
What ₹15–20 LPA interviews expect
About ₹15–20 LPA Playwright Testing roles
Roles in the ₹15–20 LPA band are typically for senior specialists. Interviewers check whether you can already do the work expected at this level, so questions here are weighted towards Fixtures and Hooks (6), Playwright Core (6), JavaScript and TypeScript (6), Visual & Accessibility Testing (5).
Salary bands are indicative only. The same skills can pay differently across cities, company types and negotiation.
How do you fail a test if the page logs any console error?
Show answer
How do you debug a test in VS Code with the Playwright extension?
Show answer
How do project dependencies differ from globalSetup?
Show answer
How do you assert an element's CSS class, attribute or value?
Show answer
How do you test a file download?
Show answer
How do you test file upload via API?
Show answer
How do you use test.step and test annotations?
Show answer
A component test passes alone but fails when the full component suite runs. What do you check?
Show answer
How do you mock network traffic using a HAR file?
Show answer
Visual tests pass on developers' laptops but fail in CI with tiny font differences. Why, and how do you fix it?
Show answer
What is a fixture option and how do you define one?
Show answer
A test uses forEach with an async callback and the checks inside never seem to run. Why?
Show answer
How does Playwright compare with Selenium and Cypress?
Show answer
Describe a time strict TypeScript types caught a bug in your test code.
Show answer
What is the difference between click and dispatchEvent?
Show answer
Does headless mode behave differently from headed mode?
Show answer
How do you take visual snapshots of each component state in component tests?
Show answer
Images load lazily and are sometimes missing from full-page screenshots. How do you make them stable?
Show answer
How do you run the same visual tests at mobile, tablet and desktop sizes?
Show answer
What are higher-order functions?
Show answer
How is a Playwright component test different from a Jest unit test with jsdom?
Show answer
What is the use block in playwright.config?
Show answer
What are global setup and teardown?
Show answer
How do you listen to all network requests on a page?
Show answer
How do you perform drag and drop and hover?
Show answer
An endpoint streams server-sent events. How would you test it with Playwright?
Show answer
What do toHaveAccessibleName and toHaveAccessibleDescription check?
Show answer
How do you test a flow that needs two user roles, such as an admin and a customer, in one test?
Show answer
What actionability checks does Playwright run before a click?
Show answer
How do you design a locator strategy for a team so tests survive UI redesigns?
Show answer
How do you attach axe results to the Playwright HTML report?
Show answer
What is the difference between await expect(locator) and a plain expect on a value?
Show answer
Where should Playwright tests run in a delivery pipeline?
Show answer
How do you provide page objects as fixtures?
Show answer
How does Playwright's trace viewer help?
Show answer
What are union types and type narrowing in TypeScript?
Show answer
How do access modifiers help in page object classes?
Show answer
Tell me how you learned TypeScript quickly for a project.
Show answer
How do you return a fake JSON response that depends on the request body?
Show answer
Frequently asked questions
What do Playwright Testing interviews for ₹15–20 LPA roles test?
At ₹15–20 LPA the focus is usually on: deep expertise in a specialisation, architecture-level reasoning, metrics and business impact, leading small initiatives. This page's set is weighted towards Fixtures and Hooks (6), Playwright Core (6), JavaScript and TypeScript (6), Visual & Accessibility Testing (5).
Which companies pay ₹15–20 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 ₹15–20 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 ₹15–20 LPA.