Interview questionsUpdated 12 Oct 2026 · Team InterviewPlan

Automation Tester Interview Questions and Answers

Automation tester interviews test both coding and test strategy. Panels ask how you design a maintainable framework, handle flaky tests, choose what to automate and run suites in CI/CD. These questions reflect what Selenium, Playwright and API automation candidates face in 2026 at services firms and product companies.

What interviewers test in an automation tester interview

Expect a mix of tool questions, a live coding task such as automating a login flow or writing a locator, and framework discussion. Many interviewers ask you to explain your current framework's structure in detail.

Senior candidates are judged on strategy: what not to automate, how to keep suites fast and reliable, and how automation supports release decisions.

  • Tools: Selenium WebDriver, Playwright, Cypress and Appium basics
  • Coding: Java, Python, JavaScript or TypeScript fundamentals
  • Framework design: POM, data-driven, BDD and reporting
  • Reliability: waits, flaky test handling and test data management
  • CI/CD: pipelines, parallel runs, containers and test reporting

Technical topics to revise

Build a small framework from scratch for a demo site: page objects, config, test data, reporting and a CI pipeline. Being able to walk through it file by file prepares you for most framework questions.

  • Locators: ID, CSS selectors, XPath axes and relative locators
  • Implicit, explicit and fluent waits, and Playwright auto-waiting
  • Page Object Model and Page Factory
  • TestNG annotations, groups, data providers and parallel execution
  • Cucumber feature files, step definitions and hooks
  • Rest Assured or Playwright API testing with assertions
  • Selenium Grid, Docker and cloud device farms
  • Allure or Extent reports and Jenkins or GitHub Actions pipelines

How to structure your answers

For framework questions, describe layers from top to bottom: tests, page objects, utilities, config, test data and reporting, then CI. For coding questions, write readable code and mention how you would make it reusable.

In project stories, quantify impact: regression time reduced, suite stability improved or defects caught before release.

How InterviewPlan AI helps you prepare

Automation testing mock interviews cover Selenium, Playwright, framework and CI questions with feedback on depth. Coding help supports practice scripts, and Resume AI turns framework work into measurable results.

Interview Copilot provides live transcription with speaker labels and resume-grounded drafts during interviews. After joining, Selenium and QA Testing Job Support give live expert-plus-AI help in your first 90 days, at $5 per hour with 200 AI credits included.

Questions and model answers

9 questions you are likely to hear.

  1. Explain the difference between implicit, explicit and fluent waits in Selenium.

    Why they ask: Wait strategy is central to stable Selenium tests.

    Sample answer: An implicit wait sets a global timeout for finding elements, so every findElement call retries until the element appears or time runs out. An explicit wait, with WebDriverWait and ExpectedConditions, waits for a specific condition like an element being clickable. A fluent wait is an explicit wait with configurable polling interval and ignored exceptions. I avoid mixing implicit and explicit waits because it can cause unpredictable delays. In my framework, I removed implicit waits and used explicit waits in page objects, which cut flaky failures from around 15 percent of runs to under 2 percent.

  2. How do you design an automation framework from scratch?

    Why they ask: Interviewers want to see structure, maintainability and scalability.

    Sample answer: I start with the language and tools that match the team, for example Java with Selenium, TestNG and Maven. I use the Page Object Model so locators and actions live in page classes, keep tests readable and free of locators, and put utilities like waits, screenshots and config readers in separate packages. Test data comes from JSON or Excel files, or APIs for setup. Config handles environments and browsers. Reports use Allure with screenshots on failure. Tests run in parallel on Selenium Grid in Docker through a Jenkins pipeline triggered on each build.

  3. How do you handle flaky tests?

    Why they ask: Flakiness destroys trust in automation, so this is a key senior skill.

    Sample answer: I treat flaky tests as defects. First I track them: which tests fail intermittently and with what errors. Common causes are timing issues, shared test data, dependencies between tests and unstable environments. I fix timing with proper explicit waits, make each test create its own data, and remove order dependencies. If a test cannot be fixed quickly, I quarantine it so it does not block the pipeline while I work on it. Retries are a last resort, not a fix. In one project, these steps brought the pass rate of our nightly suite from about 80 to 98 percent.

  4. Write an XPath to find a button with text Submit inside a form with id checkout.

    Why they ask: Locator skills are tested in almost every automation interview.

    Sample answer: I would write //form[@id='checkout']//button[normalize-space()='Submit']. The double slash allows the button to be nested at any level inside the form, and normalize-space handles extra whitespace in the button text. An equivalent CSS selector cannot match by text, so I would use form#checkout button[type='submit'] if the type is reliable. In practice, I prefer asking developers to add stable data-testid attributes, then use a selector like [data-testid='checkout-submit'], which survives UI text and layout changes much better than text-based XPath.

  5. Selenium or Playwright: which would you choose for a new project?

    Why they ask: This tests up-to-date tool judgement rather than loyalty.

    Sample answer: For a new web project in 2026, I would usually choose Playwright: it has auto-waiting, built-in parallelism, network interception, multiple browser contexts, tracing for debugging and a built-in API testing client, which reduces flakiness and setup. Selenium remains a strong choice when the team has an existing Java framework, needs wide language support or older browser coverage, or uses Appium for mobile in the same stack. On a recent project, migrating a small, flaky Selenium suite to Playwright with TypeScript reduced run time by about half and made failures much easier to debug with traces.

  6. How do you automate API tests, and how do they fit with UI tests?

    Why they ask: Modern automation strategies rely heavily on API tests.

    Sample answer: I use Rest Assured in Java or Playwright's request context for API tests, validating status codes, response schemas, field values and error cases. API tests are faster and more stable than UI tests, so following the test pyramid, I cover most business rules at the API level and keep UI tests for critical user journeys. I also use APIs for test setup, such as creating a user and order before a UI test, which cuts UI test time significantly. In my last team, moving data setup to APIs reduced our UI suite run time from 90 to about 35 minutes.

  7. How do you run automation tests in a CI/CD pipeline?

    Why they ask: Automation only creates value when it runs continuously.

    Sample answer: In Jenkins or GitHub Actions, I trigger a smoke suite on every pull request and a full regression nightly or before releases. Tests run in parallel in Docker containers with Selenium Grid or Playwright's built-in sharding. The pipeline publishes Allure reports, saves screenshots, videos or traces on failure and posts results to Slack or Teams. Environment details and credentials come from pipeline secrets. A failing smoke test blocks the merge. This setup meant developers saw test feedback within about 15 minutes of raising a pull request.

  8. How do you handle test data in automation?

    Why they ask: Poor test data management is a common root cause of flaky and blocked tests.

    Sample answer: I make each test independent by creating its own data, usually via APIs or database scripts in setup, and cleaning up after if needed. Unique values like timestamps or UUIDs avoid collisions in parallel runs. For data-driven tests, I keep input combinations in JSON or CSV files and use TestNG data providers. Sensitive data is masked or synthetic. In a banking project, shared test accounts caused tests to block each other; switching to API-created accounts per test removed that whole class of failures.

  9. Tell me about the biggest impact your automation work had.

    Why they ask: This shows the business value of your automation, not just scripts written.

    Sample answer: At an insurance client, regression for each monthly release took a team of four testers about five days manually. I built a Selenium and TestNG framework with page objects and API-based data setup, automated around 400 high-priority scenarios and integrated them into Jenkins with parallel execution on a Docker grid. Full regression dropped to about three hours, and the manual team shifted to exploratory testing of new features. The client moved to fortnightly releases, and production defects from regression issues dropped noticeably over the next two quarters.

FAQ

Questions people ask about automation tester.

Which language should I use for automation testing interviews?

Java is still the most common with Selenium in services companies, while TypeScript with Playwright is growing fast at product companies. Python is also used. Pick the language in your target job descriptions and practise core coding problems in it.

Is coding asked in automation tester interviews?

Yes. Expect basic programs such as string reversal, counting characters, sorting and collections handling, plus writing locators and small Selenium or Playwright scripts. Interviewers check that you can write clean, working code without heavy IDE help.

Should I learn BDD with Cucumber?

Many enterprise teams use Cucumber with Gherkin feature files, so it is worth knowing. Understand its value for collaboration with BAs and product owners, and its cost in maintenance. Be ready to explain hooks, step definitions and tags.

Can InterviewPlan AI help after I start an automation role?

Yes. Selenium and QA Testing Job Support give live expert-plus-AI help in your first 90 days with framework issues, scripts and tickets. It is $5 per hour with 200 AI credits included, and hours never expire.

P.S.

Reading helps. Practising out loud helps more.

Start free with 5 live minutes and 100 AI credits for Resume AI, Job Search, Auto-Apply, mock interviews and Behavioral Coach.