Black Friday Flash Sale:

50% OFF ALL PRODUCTS
Ends in--d--h--m--s
COUPON:BLACKFRIDAY50

QA Automation Interview Questions 2026: 10 Free with Answers

QA Automation Interview Questions Practice Tests: 6 Practice Tests and 240 Questions
In this article

QA Automation  ·  Interview questions  ·  Updated November 2026

QA automation interview questions test whether you can build and maintain reliable automated tests, not just name tools. QA automation and SDET interviews usually cover Selenium WebDriver 4, core Java, TestNG or Cucumber, API testing with Postman and REST Assured, testing fundamentals and CI/CD, then a resume and HR round. This guide shows what interviewers expect at junior, mid and senior level, gives one-line answers to six classic questions and sets out a 3-week plan. It ends with 10 free QA automation practice questions with answers, written like a real practice test.

At a glance

TopicQA automation and SDET interviews
Levels coveredJunior, mid-level and senior
Core toolsSelenium 4, Java, TestNG, Cucumber
API testingPostman and REST Assured
Exametics set6 practice tests, 240 questions
Official examNone (interview preparation)
  • Free in this post: 10 original sample questions with full explanations, plus quick answers to six classic questions.
  • The Exametics set tags every question with one of eleven topic areas and includes a timed Exam Mode test.

Sources: Selenium documentation and the ISTQB Certified Tester Foundation Level syllabus v4.0.1 (PDF). Checked on 9 November 2026.

What QA automation interview questions test

QA automation interview questions test four things: whether you can drive a browser reliably, write clean code in one language, organise tests in a framework, and test APIs as well as user interfaces. Strong candidates also explain how their tests run in CI and why some tests belong at a lower level.

No official body sets these interviews, so there is no syllabus, passing score or question count. Each employer chooses its own questions.

Quick answers to six classic questions

Learn these one-line answers, then practise explaining each with an example.

QuestionShort answerOfficial source
Implicit or explicit wait?An implicit wait applies to every element lookup and defaults to 0. An explicit wait polls for one condition. Do not mix them.Selenium waits documentation
findElement or findElements?findElement returns the first matching element. findElements returns a list, which is empty when nothing matches.Selenium finders documentation
== or equals for Java strings?equals compares characters; == checks whether both are the same object.Java SE 21 String API (equals)
Which HTTP methods are idempotent?PUT, DELETE and the safe methods such as GET. POST is not.RFC 9110
401 or 403?401: no valid authentication credentials. 403: the server understood the request but refuses it.RFC 9110
Confirmation or regression testing?Confirmation testing checks the original defect is fixed. Regression testing checks a change caused no adverse effects.ISTQB CTFL v4.0.1 syllabus

Selenium WebDriver 4 and synchronisation

Selenium questions start with locators. The Selenium locator documentation lists eight traditional strategies: class name, CSS selector, id, name, link text, partial link text, tag name and XPath. Selenium 4 adds relative locators such as above, below, to the left of, to the right of and near, which you can chain.

Waits come next, because flaky tests usually come from poor synchronisation. The Selenium waits page says the implicit wait defaults to 0 and warns: “Do not mix implicit and explicit waits.” Be ready to explain explicit waits, FluentWait in Java and why Thread.sleep is a poor choice.

Know that Selenium Manager has shipped with every release since 4.6 and downloads and caches a matching driver when none is available. Also know how to reach elements inside a shadow root.

Core Java for testers

Many Selenium roles use Java, so expect questions on strings, collections, exceptions, inheritance and interfaces. String comparison is a favourite, because the Java String documentation says strings are constant and defines equals by content.

You do not need to be a senior developer. You do need to read code fluently, write a page object without help and explain how your framework handles test data and configuration. Our Java interview questions guide covers the language side, and the Java String interview questions guide goes deeper on immutability.

TestNG, Cucumber and framework design

Framework questions check how you organise tests. For TestNG, know the order of the setup annotations, how @DataProvider feeds data to a test, and how priority, dependsOnMethods, groups and parallel runs work. Lower priority values run first.

For Cucumber, know the Gherkin reference: Feature, Scenario, Background, Scenario Outline with Examples, and the Given, When, Then steps. Mid-level and senior candidates also discuss the Page Object Model, reporting and keeping step definitions free of duplication.

API testing with Postman and REST Assured

API testing is a standard part of automation interviews. In Postman, you write tests with pm.test and assertions such as pm.response.to.have.status(200); the Postman test script documentation says tests run after the response arrives. In REST Assured, you use the given(), when(), then() style with status code and body assertions.

Interviewers also test HTTP itself. RFC 9110, the HTTP semantics standard, defines idempotent methods and separates 401 from 403. For security, know the OWASP API Security Top 10 2023, especially API1:2023 Broken Object Level Authorization.

Testing fundamentals, CI/CD and the HR round

Expect questions on test design, the defect life cycle and confirmation versus regression testing. The ISTQB Foundation Level syllabus says regression testing “is a strong candidate for automation” and that, where CI is used, it is good practice to include automated regression tests.

For CI/CD, know how your tests run without you. Be ready to describe a Jenkins pipeline defined in a Jenkinsfile, and how Selenium Grid 4 spreads sessions across nodes. For headless runs, the Chrome headless documentation says you pass the --headless flag; headless is a Chrome feature, not a Selenium one.

The HR round then asks about your projects, your resume and how you handle disagreements over bugs.

Exametics practice tests

QA Automation Interview Practice Tests: 6 tests, 240 questions

30-day refund. Instant access after payment.

QA automation and SDET interview questions by level

The same topics appear at every level, but the depth changes: juniors use tools, mid-level candidates maintain frameworks and seniors defend trade-offs.

LevelTypical focusA question you might hear
Junior (manual tester moving into automation)Locators, waits, basic Java, simple TestNG tests, Postman requests“How would you wait for a button to become clickable?”
Mid-level QA automation engineerPage Object Model, data-driven tests, REST Assured, CI runs, flaky test fixes“How do you stop your suite failing at random in CI?”
Senior or SDETFramework design, test strategy, Grid and parallel runs, API security, code review“Which tests would you move from UI to API level, and why?”

Junior: show you can automate a real flow

For a junior role, interviewers want proof that you can turn a manual test case into a stable script. Explain why you chose a locator, how you wait for the page and how you check the result. If you are coming from manual testing, our manual testing interview questions guide covers the test case and defect questions you will still face.

Mid-level: show you can maintain a framework

Mid-level interviews focus on code that other people will run every day. Expect to discuss page objects, configuration, test data, reporting and retries.

Senior and SDET: show judgement

Senior candidates are asked where tests belong. The ISTQB syllabus describes the test pyramid: tests at the bottom are small, isolated and fast, while end-to-end tests at the top are slower, so you usually need fewer of them. Be ready to apply it to a real product.

Next on your testing path

See all interview questions practice tests →

How to prepare for a QA automation interview in 3 weeks

Three weeks is enough to prepare if you already write some automated tests. Write code against a real website or API every day. Start by trying the 10 free practice questions below to see where you stand.

  1. Days 1–5: Selenium 4 and Java Automate a login and a search flow with explicit waits only. Use Selenium Manager instead of a hand-installed driver, try a relative locator and reach an element inside a shadow root. Revise Java strings, collections and exceptions.
  2. Days 6–10: Frameworks Put your tests into the Page Object Model with TestNG. Add a @DataProvider, groups and a parallel run. Write one Cucumber feature with a Background and a Scenario Outline, and keep the step definitions thin.
  3. Days 11–14: API testing Test a public API in Postman with pm.test assertions, then repeat the same checks in REST Assured. Revise HTTP methods, idempotency, 401 vs 403 and the OWASP API Security Top 10 2023.
  4. Days 15–18: CI/CD, Grid and fundamentals Run your suite from a Jenkinsfile in headless Chrome, then on a Selenium Grid 4 standalone server. Revise confirmation testing, regression testing and the test pyramid.
  5. Days 19–21: Timed practice and stories Take the QA automation interview practice tests in timed Exam Mode and read every explanation. Prepare three short project stories for the HR round: a bug you found, a flaky test you fixed and a framework change you made.

Tip

Practise answering out loud. For each topic, say what it is, when you would use it and one mistake to avoid, in under a minute.

Planning more than one exam?

QA automation roles often overlap with manual testing, Java and ISTQB preparation. The All-Access Pass covers every practice test on Exametics, including new exams as they are added, with lifetime access. It costs less than buying about six single practice tests.

Free QA automation interview questions (10 with answers)

Try these 10 free practice questions before you open the answers. They are original sample questions across the main topic areas, and the full Exametics QA automation practice tests have 240 more in the same style.

Practice question 1 · Selenium WebDriver

Your framework sets a 10-second implicit wait, and some tests also use a 15-second WebDriverWait. An explicit wait for a missing element sometimes times out after about 20 seconds. What does the Selenium documentation recommend?

  • A. Raise the implicit wait to 15 seconds so both waits match
  • B. Replace the explicit wait with Thread.sleep(15000)
  • C. Do not mix the two: set the implicit wait back to its default of 0 and use explicit waits
  • D. Set a page load timeout of 15 seconds instead

Answer: C. The Selenium waits page says not to mix implicit and explicit waits because it causes unpredictable wait times, and gives this exact case: 10 plus 15 seconds can time out after 20. Setting the implicit wait back to 0 and using explicit waits gives one clear timeout per condition.

A is wrong because both waits would still stack. B is wrong because a fixed sleep always waits the full time and still fails if the page is slower. D is wrong because a page load timeout controls page loading, not waiting for a particular element.

Practice question 2 · Selenium WebDriver

A project uses Selenium 4.20 in Java. Chrome is installed, but chromedriver is not on the PATH and no driver location is set. What happens when the test calls new ChromeDriver()?

  • A. Selenium Manager finds the browser version, downloads a matching driver and caches it
  • B. The test always fails because chromedriver must be on the PATH
  • C. Selenium falls back to a built-in headless HtmlUnit browser
  • D. Selenium sends the session to a Selenium Grid on localhost:4444

Answer: A. Selenium Manager has shipped with every Selenium release since 4.6. When no driver is available, it discovers the browser version, downloads the matching driver and caches it locally.

B describes Selenium before 4.6, when you had to install drivers yourself or use a third-party tool. C is wrong because Selenium does not switch browser silently. D is wrong because a local ChromeDriver does not use a Grid; you need RemoteWebDriver and a Grid URL for that.

Practice question 3 · Selenium WebDriver

An Accept button sits inside the open shadow root of an <app-consent-toggle>. driver.findElement(By.cssSelector("button.accept")) throws NoSuchElementException. What should you do in Selenium 4?

  • A. Switch into the element with driver.switchTo().frame()
  • B. Increase the implicit wait so the button has time to load
  • C. Use an XPath such as //button[@class='accept'] from the driver
  • D. Find the host element, call getShadowRoot() on it, then find the button with a CSS selector on that shadow root

Answer: D. The shadow DOM is an encapsulated tree inside its host, so a search from the page does not see it. Selenium 4 adds shadow root methods: you locate the host, get its shadow root and search inside it, as the Selenium finders documentation shows with a CSS selector.

A is wrong because a shadow root is not a frame. B is wrong because the element is already there; waiting longer does not change where the search looks. C is wrong because a search from the document still does not enter the shadow tree, whichever locator strategy you use.

Practice question 4 · Core Java

What does this Java code print? String a = "qa"; String b = new String("qa"); System.out.println((a == b) + " " + a.equals(b));

  • A. true true
  • B. false true
  • C. true false
  • D. It does not compile

Answer: B. new String("qa") creates a new object that is a copy of the argument, so a and b are different references and == is false. equals compares the character sequences, which match, so it is true.

A is wrong because == compares references, not content. C reverses the two results. D is wrong because the code is valid Java. This is why tests should compare text with equals.

Practice question 5 · TestNG

A TestNG suite has one <test> tag containing one class. The class has methods annotated @BeforeClass, @BeforeMethod, @BeforeSuite and @BeforeTest. In what order do they run before the first test method?

  • A. @BeforeMethod, @BeforeClass, @BeforeTest, @BeforeSuite
  • B. @BeforeClass, @BeforeSuite, @BeforeTest, @BeforeMethod
  • C. @BeforeSuite, @BeforeTest, @BeforeClass, @BeforeMethod
  • D. @BeforeTest, @BeforeSuite, @BeforeMethod, @BeforeClass

Answer: C. The annotations run from the widest scope to the narrowest: before all tests in the suite, then before the classes in the <test> tag, then before the first method in the class, then before each test method.

A is the exact reverse. B and D mix up the scopes: a suite contains <test> tags, which contain classes, which contain test methods.

Practice question 6 · Cucumber and BDD

A feature file has a Background with two Given steps and three scenarios. The project also has a @Before hook. When do the Background steps run?

  • A. Before each scenario, but before the Before hook
  • B. Once, before the first scenario only
  • C. Before each of the three scenarios, after the Before hook
  • D. Once, after all three scenarios have finished

Answer: C. The Gherkin reference says Background steps are run before each scenario, but after any Before hooks. So they run three times here.

A reverses the order of hook and Background. B is wrong because a Background is not a one-time setup for the whole feature. D is wrong because a Background is setup, not clean-up; clean-up belongs in an After hook.

Practice question 7 · API testing

You are designing retry tests for an API client. According to RFC 9110, which HTTP method is NOT defined as idempotent?

  • A. GET
  • B. POST
  • C. PUT
  • D. DELETE

Answer: B. RFC 9110 says PUT, DELETE and the safe methods are idempotent: sending the same request several times has the same intended effect as sending it once. POST is not in that list, so repeating it may, for example, create two orders.

A is wrong because GET is a safe method, and all safe methods are idempotent. C and D are named as idempotent in the standard. That is why a client can usually retry PUT or DELETE safely but needs extra protection before retrying POST.

Practice question 8 · API testing

Logged in as user A with a valid token, you call GET /api/orders/1002. Order 1002 belongs to user B, but the API returns 200 with B’s order. Which OWASP API Security Top 10 2023 risk is this?

  • A. API2:2023 Broken Authentication
  • B. API1:2023 Broken Object Level Authorization
  • C. API4:2023 Unrestricted Resource Consumption
  • D. API7:2023 Server Side Request Forgery

Answer: B. The API accepted a valid user but did not check that this user may access this particular object. OWASP says object-level authorisation checks should be considered in every function that accesses a data source. A good test changes object IDs and expects the request to be refused.

A is wrong because authentication worked: the token was valid and identified user A. C is about missing limits on requests or resources. D is about making the server fetch a URL chosen by an attacker.

Practice question 9 · Testing fundamentals

A developer fixes a defect. You rerun the test that failed and it now passes. Then you run the automated suite to check that the fix did not break anything else. What are these two activities called?

  • A. Confirmation testing, then regression testing
  • B. Regression testing, then confirmation testing
  • C. Smoke testing, then sanity testing
  • D. Acceptance testing, then exploratory testing

Answer: A. The ISTQB Foundation Level syllabus says confirmation testing confirms that an original defect has been fixed, and regression testing confirms that a change, including a confirmed fix, has caused no adverse consequences.

B swaps the two terms. C is wrong because smoke and sanity checks are quick checks of basic functions, not checks of a specific fix. D is wrong because acceptance and exploratory testing are not defined by their link to a fix.

Practice question 10 · CI/CD and Selenium Grid

Your CI pipeline sends 50 parallel Selenium sessions to a Grid 4 with fewer free browser slots. Which Grid component holds the waiting session requests in first-in, first-out order?

  • A. Router
  • B. Session Map
  • C. Event Bus
  • D. New Session Queue

Answer: D. The Selenium Grid documentation says the New Session Queue holds all new session requests in FIFO order. The Distributor polls the queue and assigns each request to a Node with a free slot.

A is wrong because the Router is the entry point that forwards requests to the right component. B is wrong because the Session Map stores which Node runs each existing session. C is wrong because the Event Bus carries messages between Grid components.

How did you score?

8 to 10 correct: try a full timed practice test in Exam Mode. Under 8: each question shows its topic area, so revise the areas you missed first. The QA automation interview practice tests have 240 more questions like these, each with a hint and a full explanation.

Common mistakes in QA automation interviews

A frequent mistake is listing tools without explaining decisions. Interviewers want to hear why you chose a locator, a wait or a test level.

  • Using Thread.sleep as a fix. Fixed sleeps slow suites and still fail when the app is slower. Explain explicit waits for a specific condition instead.
  • Mixing implicit and explicit waits. The Selenium documentation warns this causes unpredictable wait times. Say which one your framework uses, and why.
  • Automating everything through the UI. The test pyramid in the ISTQB syllabus explains why most checks belong at faster, lower levels; in practice that means unit and API tests.
  • Only testing the happy path of an API. Show that you check status codes, error bodies and access control, such as one user requesting another user’s data.
  • Weak project stories. In the HR round, describe a real problem, what you did and the result. Do not claim numbers you cannot back up.

QA automation interview questions FAQs

Expect questions on Selenium WebDriver locators and waits, core Java, TestNG or Cucumber, API testing with Postman or REST Assured, testing fundamentals and CI/CD. Many employers add a resume and HR round.

Yes. This guide includes 10 free QA automation practice questions with answers, each explained and labelled with its topic area. For a full practice test, the Exametics QA automation interview practice tests have 6 tests and 240 questions, including a timed Exam Mode test, with every answer explained.

If you already write some automated tests, about three weeks of daily practice is a realistic plan. Spend it on Selenium 4 and Java, then frameworks, API testing, CI/CD, and timed practice tests in the final days.

Learn Selenium WebDriver and basic Java first if you are moving from manual testing, because junior interviews focus on them. Then add API testing: the ISTQB test pyramid places faster, lower-level tests below end-to-end UI tests, and senior interviews ask where tests belong.

No single official QA automation exam exists, and each employer sets its own interview questions. The ISTQB Certified Tester Foundation Level syllabus is an official reference for testing terms such as confirmation testing and regression testing.

Know Selenium Manager, which the Selenium documentation says ships with every release since 4.6, relative locators, shadow root methods and Selenium Grid 4 components. Also know the waits guidance: do not mix implicit and explicit waits.

Official references: Selenium documentation, plus the Java SE 21 String API, TestNG, Cucumber Gherkin reference, Postman, REST Assured, RFC 9110, OWASP API Security Top 10 2023, ISTQB CTFL v4.0.1 syllabus and Jenkins Pipeline pages linked above. Checked on 9 November 2026.

Start practising for your QA automation interview

Practise with 6 tests and 240 QA automation and SDET interview questions on Selenium 4, Java, TestNG, Cucumber, API testing, CI/CD and the HR round, with every answer explained.

✓ Every answer explained  ·  ✓ Timed exam mode  ·  ✓ 30-day refund

Ready to test yourself?

Take timed, exam-style practice tests and see exactly which domains need more work before exam day.

Share this article

Leave a Comment

All-Access Pass
Practise for 800+ certification exams

Timed, exam-style tests with an explanation for every answer. Lifetime access.

₹18,810
Related practice tests
Practice Test

Price range: ₹944 through ₹1,416

Select options This product has multiple variants. The options may be chosen on the product page
Practice Test

Price range: ₹944 through ₹1,416

Select options This product has multiple variants. The options may be chosen on the product page
In this article

Keep reading

Get new exam guides in your inbox

One short email when we publish new guides and practice tests. No spam.

Shopping Cart
Scroll to Top