Test Automation & Frameworks interview questions.
Questions on Playwright, Selenium, Cypress, Page Object Model, test architecture, flaky tests, and framework design.
Free to start · 7-day trial on paid plans
How to approach automation questions.
Test automation interviews probe two things at once: can you write reliable code that exercises a real product, and can you reason about why the test suite has the shape it does. Reciting the test pyramid is not enough. Interviewers want to hear which decisions you made, which you regret, and what you would change if you owned the framework today.
Anchor every answer in a concrete framework. Playwright, Cypress, and Selenium each force different trade-offs: Playwright bakes auto-waiting and parallel context isolation into the runner, Cypress keeps you inside a single browser tab with a tight DX, and Selenium gives you raw WebDriver flexibility at the cost of having to assemble waits, retries, and reporting yourself. Saying "I would use a test automation framework" is a junior signal. Saying "I would reach for Playwright because we already isolate tests at the storage-state level" is the answer they want.
Locator strategy is the single most predictive topic. Interviewers will ask how you choose between data-testid, role selectors, CSS, and XPath, and they will keep asking until they find the layer where you stop having an opinion. A strong answer ranks selectors by stability: role-based first (because it co-evolves with accessibility), then data-testid (when role is ambiguous), then CSS (only as an escape hatch), with XPath reserved for legacy DOM you cannot annotate.
Flaky tests are the proxy for whether you have actually run a suite in CI. Be ready to walk through a real flake you debugged: what the symptom looked like in CI logs, how you isolated it (replay, video, trace viewer, network mock review), and the structural fix you eventually shipped. "I added a wait" is the wrong answer. "I removed the implicit wait, captured the network race in a Playwright trace, and replaced the unstable selector with a role query" is the right one.
What hiring managers are listening for
- Test architecture instinctsYou can defend why your suite is shaped like a pyramid, a trophy, or a honeycomb.
- Locator disciplineYou rank selector strategies by stability and explain when to break the rule.
- Flaky test ownershipYou debug to a structural fix instead of retry-until-green.
- Parallelisation literacyYou know how your framework isolates state, fixtures, and database access across workers.
Do not memorize the page object model definition and stop there. Interviewers ask follow-ups: when does POM become an anti-pattern, when do you replace it with the screenplay pattern or component objects, how do you handle drift when the UI moves faster than the page objects. If your POM answer is one paragraph long, you are not ready for senior automation rounds.
Showing 35 questions · 10 free answers remaining
Stop reading answers. Start practicing them.
AssertHired's AI interviewer asks follow-up questions, scores your responses across 4 QA-specific dimensions, and gives you actionable feedback.
Start a Free Mock InterviewFree to start · 7-day trial on paid plans
More Question Categories
Explore questions across all QA interview topics.
Practice by Tool & Technology
Dive deeper with tool-specific interview questions.
Ready to Ace Your QA Interview?
Stop reading answers, start practicing them live with AI that knows QA.
Join 1,200+ QA engineers already practicing with AssertHired.
Start your free QA interview