Skip to main content
35Questions · All Levels
QUESTIONS  /  test-automation

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

APPROACH  /  TEST-AUTOMATION.STRATEGY

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 instincts
    You can defend why your suite is shaped like a pyramid, a trophy, or a honeycomb.
  • Locator discipline
    You rank selector strategies by stability and explain when to break the rule.
  • Flaky test ownership
    You debug to a structural fix instead of retry-until-green.
  • Parallelisation literacy
    You know how your framework isolates state, fixtures, and database access across workers.
Common pitfall

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.

Category
Level
Tool / Topic

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 Interview

Free to start · 7-day trial on paid plans

EXEC.NOW

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
FREE.TO.START  ·  7.DAY.TRIAL ON PAID PLANS
Written by Aston Cook, Senior QA EngineerLast updated: March 2026