Playwright Testing Rapid-Fire Questions & Answers
50 questions for the rapid-fire stage — 30 easy, 20 medium.
About the rapid-fire round
Rapid-fire questions are quick definitions and one-line answers that interviewers fire at the start or end of a round to check your Playwright Testing basics. Aim to answer each in under 20 seconds.
Tips for the rapid-fire round
- Answer in one or two sentences, then stop.
- If you don't know, say so quickly and move on; don't guess at length.
- Revise these the morning of the interview.
- Practise with a friend who reads them in random order.
What is a HAR file?
Show answer
What do headed mode and slowMo do?
Show answer
How do you handle authentication to avoid logging in every test?
Show answer
What does page.pause() do?
Show answer
How can you view a trace file without a local Playwright install?
Show answer
What are the main data types in JavaScript?
Show answer
What is a locator in Playwright?
Show answer
What is the use block in playwright.config?
Show answer
Why is sharing state between tests through module-level variables a bad idea?
Show answer
What are idempotent HTTP methods and why do they matter in testing?
Show answer
What is the difference between API testing and UI testing?
Show answer
Why should you start waitForResponse before the action that triggers it?
Show answer
What does test.describe do?
Show answer
What is the difference between await expect(locator) and a plain expect on a value?
Show answer
What are closures?
Show answer
What is the difference between beforeEach and fixtures?
Show answer
Does headless mode behave differently from headed mode?
Show answer
let vs const vs var?
Show answer
What is the difference between waitForSelector and expect with locator?
Show answer
What is the difference between TypeScript and JavaScript?
Show answer
What are the serial and parallel modes of test.describe.configure?
Show answer
What do locator.and() and locator.or() do?
Show answer
Locator vs ElementHandle?
Show answer
What does --repeat-each do?
Show answer
What are test.skip, test.fixme and test.fail?
Show answer
What does the nullish coalescing operator do?
Show answer
What is Playwright and which browsers does it support?
Show answer
What is the difference between == and === in JavaScript?
Show answer
What are Partial, Pick, Omit and Record used for?
Show answer
What are higher-order functions?
Show answer
What is the difference between path parameters and query parameters?
Show answer
What is the Playwright Inspector and how do you open it?
Show answer
What is the difference between page, context and browser?
Show answer
What are web-first assertions?
Show answer
What are the built-in fixtures page, context, browser and request?
Show answer
What is the difference between page.route and context.route?
Show answer
What is auto-waiting in Playwright?
Show answer
What is forbidOnly and why use it in CI?
Show answer
What does npx playwright test --last-failed do?
Show answer
What is the difference between a type and an enum in TypeScript?
Show answer
How do you use test.step and test annotations?
Show answer
What is the difference between click and dispatchEvent?
Show answer
What does the open option of the HTML reporter control?
Show answer
What is the difference between synchronous and asynchronous code?
Show answer
Which locators does Playwright recommend?
Show answer
What does response.ok() check?
Show answer
What is a Promise and what states can it have?
Show answer
What are nth(), first() and last(), and why are they risky?
Show answer
What is async/await?
Show answer
Frequently asked questions
What happens in the Playwright Testing rapid-fire round?
Rapid-fire questions are quick definitions and one-line answers that interviewers fire at the start or end of a round to check your Playwright Testing basics. Aim to answer each in under 20 seconds.
How do I clear the rapid-fire round?
Answer in one or two sentences, then stop. If you don't know, say so quickly and move on; don't guess at length. Revise these the morning of the interview.
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.