Skip to main content
HireStepX is now in Beta! Be among the first to practice smarter and land your dream role.
Role Guides

QA Automation Testing Interview Questions India 2026

Selenium, Cypress, Playwright, API testing (Postman, RestAssured), test strategy, and QA questions at Indian IT and product companies, 2026.

Interview Skills29 March 202612 min read4 sections

QA automation engineering is one of the most in-demand roles in Indian tech as companies invest in automated test coverage to ship faster. The role has evolved from writing Selenium scripts to owning the entire testing infrastructure: end-to-end tests, API tests, performance tests, and CI/CD integration. This guide covers what to expect in QA automation interviews at Indian companies in 2026.

4 sections

QA automation engineer salary India (2024-25):

Junior QA automation engineer (0-2 years, Selenium/Cypress): 5-14 LPA at product companies; 3-8 LPA at IT services. Mid-level SDET (Software Development Engineer in Test) (3-5 years): 15-35 LPA at product companies. Senior QA automation engineer/SDET (5-8 years): 28-60 LPA.

SDET vs manual QASDET roles at product companies pay significantly more than manual QA or IT services QA roles. The distinction: SDET engineers write production-quality test code, participate in code reviews, build testing frameworks, and own the CI/CD pipeline quality gates. Manual QA roles are being automated away.

Focus on becoming an SDET, not a manual tester, for the best career trajectory.

Companies with strong SDET teams in India: Swiggy, PhonePe, Razorpay, Freshworks, and IT services companies' testing practices (TCS iQA, Infosys BPM testing). The SDET career path at product companies: Junior SDET, Senior SDET, Lead SDET (owning the testing strategy for a product area), SDET Manager or Principal SDET.

Selenium interview questions:

1. What is Selenium WebDriver? Selenium WebDriver is a browser automation library. It provides a programmatic interface to control browser actions (clicking, typing, navigating) from test code. Languages supported: Java (most common in Indian enterprise), Python, C#, JavaScript, Ruby.

2. Locator strategies in Selenium (in order of preference): 1. By.id() (most reliable: IDs should be unique per page) 2. By.cssSelector() (fast and flexible: uses CSS selectors) 3. By.xpath() (powerful but brittle: avoid unless necessary) Avoid By.name() and By.tagName() for specific elements (they can match multiple elements).

3. WebDriverWait (explicit waits): Synchronisation is the most common source of flakiness in Selenium tests. Use explicit waits: wait for specific conditions before interacting with an element. WebDriverWait(driver, Duration.ofSeconds(10)).until(ExpectedConditions.elementToBeClickable(By.id('submit-button'))) Never use Thread.sleep() (wastes time and is brittle); use explicit waits instead.

4. Page Object Model (POM): POM is a design pattern that creates one class per page (or major component). The class encapsulates the page's elements (as WebElement fields) and the actions that can be performed on the page (as methods). Benefits: separates test logic from page structure (when the UI changes, update only the Page Object class, not every test); improves readability; promotes reuse.

5. TestNG vs JUnit for Selenium in Java: TestNG: more flexible annotations (@BeforeClass, @AfterClass, @DataProvider for parameterised tests, @Test with groups); better parallel test execution support; widely used with Selenium in Indian enterprise. JUnit 5: modern; cleaner API; strong Spring integration; growing adoption for unit tests but less common for Selenium tests specifically.

Modern test automation frameworks:

1. Cypress: Cypress is a modern JavaScript end-to-end testing framework that runs in the browser (not via WebDriver). This makes it much faster and more reliable than Selenium for testing React, Angular, and Vue applications.

Key concepts- cy.get('selector'): select elements using CSS selectors - cy.contains('text'): select elements by text content - cy.intercept(): intercept and mock HTTP requests (essential for testing loading states and error handling without hitting real APIs) - cy.visit('url'): navigate to a URL - Custom commands: define reusable commands (e.g., cy.login()) in cypress/support/commands.js - No explicit waits: Cypress automatically retries until the assertion passes or a timeout is reached

Best suited forReact/Vue/Angular web apps; teams that primarily use JavaScript.

2. Playwright: Playwright is Microsoft's cross-browser automation tool. Supports Chromium, Firefox, and WebKit. Modern async API with first-class async/await support. Strong parallel test execution (run tests across multiple browsers simultaneously). Auto-waiting: Playwright automatically waits for elements to be visible and stable before interacting.

Key advantages over Cypress: true cross-browser testing (Cypress only supports Chromium-based browsers in full), better API for testing in multiple tabs or browser contexts, and more powerful network interception (page.route()).

Playwright vs Cypress- Playwright: better for multi-browser, multi-tab, or complex interactions; TypeScript-first - Cypress: better DX for single-browser web app testing; excellent documentation; larger Indian community

API testing and test strategy:

1. API testing tools: Postman: most popular for manual API testing in India; also used for automated API testing via Collection Runner and Newman (Postman's CLI, used in CI/CD pipelines). RestAssured (Java): the most popular API testing library for Java; validates JSON/XML responses using a fluent DSL; integrates with TestNG/JUnit. pytest + requests (Python): the most popular API testing approach in Python; simple and powerful; integrates with pytest's fixture system.

2. Test strategy questions: 'How do you decide what to automate vs test manually?' Automate: regression tests (previously broken functionality), smoke tests (critical path: can a user log in, make a purchase, complete the core flow?), tests that run on every PR, data-driven tests (same test logic with many different inputs). Manual: exploratory testing (finding unexpected bugs), one-time test scenarios, usability and visual checks, tests where the automation cost exceeds the maintenance benefit.

3. Test pyramid: Unit tests (many, fast, cheap): test individual functions and classes; no external dependencies (mock everything). Integration tests (fewer, medium cost): test how components work together (e.g., does the API controller correctly call the service, which calls the database?). End-to-end tests (fewest, slow, expensive): test the full user journey in a browser or via API. The pyramid is often inverted in practice (many E2E tests, few unit tests); this causes slow, flaky CI pipelines. Advocate for investing in unit and integration tests to support the E2E layer.

4. CI/CD integration: Run automated tests on every PR; fail the build if any tests fail; measure test coverage and fail if it drops below the threshold. Report test results in the PR with clear failure reasons. Flaky tests: track flakiness rate per test; quarantine (disable then fix) flaky tests rather than ignoring or retrying them silently.

Frequently asked questions

Should I learn Selenium or Cypress or Playwright for a QA automation job in India in 2026?

For Indian companies in 2026: Selenium is the most widely requested in job descriptions (especially at IT services companies and large enterprises); if you only learn one tool, learn Selenium in Java. Cypress is the most popular modern tool at JavaScript/React-heavy startups and product companies. Playwright is growing rapidly and is preferred by companies doing serious cross-browser testing or migrating away from Selenium. Recommendation: learn Selenium (Java) as your primary tool, add Cypress or Playwright as a secondary for interviews at product companies. The underlying skills (test strategy, POM, API testing, CI/CD integration) are more important than the specific tool, because tools change every few years but the principles persist.

What is the difference between SDET and QA engineer in India?

QA engineer (traditional): typically manual testing; writes test cases, executes them, reports bugs, tracks bug resolution; limited coding; in-demand at legacy companies and IT services BPO arms. SDET (Software Development Engineer in Test): writes production-quality test automation code in Java/Python/JavaScript; owns the automated test framework; contributes to CI/CD pipeline; often reviews application code for testability; may do performance testing (JMeter, Gatling); expected to have full software engineering skills (data structures, design patterns, git workflow). The pay difference is significant: a manual QA engineer at an IT services company might earn 4-8 LPA after 3-5 years; an SDET at a product company earns 15-35 LPA for the same experience level. If you are starting in QA today, invest in becoming an SDET: learn one automation framework (Selenium/Cypress/Playwright), learn API testing (Postman/RestAssured), and learn CI/CD (Jenkins, GitHub Actions).

Explore more

Continue reading

All posts

Practice

Know the answer. Now say it.

Practise QA automation and SDET interview questions with HireStepX's AI voice interviewer. Get scored feedback on your test strategy explanations and how you reason about automation coverage. First 2 sessions free.