Testing Interview Questions 2026

Published July 22, 2026 · Updated July 22, 2026

28 Testing interview questions from Accenture, Wipro, Capgemini, Deloitte and more. Real questions from Technical, System Design, and HR rounds.

28 questions
Companies: Accenture, Wipro, Capgemini, Deloitte

All Testing Questions

Wipro Hard Technical round SeleniumJava

What is Fluent Wait in Selenium and when is it used? Compare it with WebDriverWait, explain how to configure polling interval and ignored exceptions, and give a scenario where Fluent Wait is the only viable option.

↑ 88 upvotes · 35 engineers asked this · Tester
Wipro Hard Technical round SeleniumJavaJest

What is Parallel Testing and why is it useful in automation? Explain how to configure parallel execution in TestNG using the suite XML, the thread-safety concerns with WebDriver instances, and how to manage them with ThreadLocal.

↑ 79 upvotes · 29 engineers asked this · Tester
Accenture Medium Technical round SeleniumJava

What are the different wait mechanisms in Selenium (Implicit, Explicit, Fluent Wait), and when should each be used? Explain the downsides of Thread.sleep() and how WebDriverWait improves reliability.

↑ 78 upvotes · 31 engineers asked this · Developer
Wipro Hard Technical round SeleniumJava

Explain the difference between a Scenario and a Scenario Outline in Cucumber BDD. When would you use a Scenario Outline, and how do you supply multiple data rows using the Examples table? Show a real-world login test example.

↑ 72 upvotes · 28 engineers asked this · Tester
Wipro Hard Technical round SeleniumJava

What is an Automation Framework? Explain its structure. Describe the layers: test data, page objects, utilities, test runner, reporters. Why is a framework needed vs raw Selenium scripts? Compare Data-Driven, Keyword-Driven, and Hybrid frameworks.

↑ 72 upvotes · 26 engineers asked this · Tester
Capgemini Medium Technical round PlaywrightTypeScriptJavaScript

Write Playwright code to handle multiple windows (browser contexts/tabs) and perform actions on a new page. Explain the difference between new page events and popup events, and how to wait for a page load before interacting.

↑ 68 upvotes · 24 engineers asked this · Tester
Accenture Medium Technical round SeleniumJava

How do you handle dynamic elements or changing locators in Selenium automation? Discuss strategies like relative locators, XPath axes, CSS attribute wildcards, and Page Object Model to insulate tests from DOM changes.

↑ 67 upvotes · 26 engineers asked this · Developer
Wipro Hard Technical round JavaSelenium

Explain the purpose of the pom.xml file in a Maven project. Describe the key sections: groupId/artifactId/version, dependencies, plugins, build lifecycle phases (compile, test, package, install), and how to add a Selenium + TestNG dependency with the correct scope.

↑ 67 upvotes · 24 engineers asked this · Tester
Wipro Hard Technical round SeleniumJava

Describe how pop-ups can be handled using Selenium. Cover alert/confirm/prompt dialogs (driver.switchTo().alert()), browser-native file upload dialogs, and custom modal pop-ups built with HTML/CSS.

↑ 65 upvotes · 23 engineers asked this · Tester
Wipro Hard Technical round JavaSelenium

Describe OOP concepts and how they are applied in automation frameworks. Give concrete examples: Encapsulation in Page Objects (private WebElements), Inheritance for BaseTest/BasePage, Polymorphism for multi-browser driver factories, and Abstraction via interfaces for reporting.

↑ 63 upvotes · 23 engineers asked this · Tester
Accenture Medium Technical round SeleniumPlaywrightJavaScript

What differences do you see between Selenium and Playwright in automation testing? Cover architecture, browser support, speed, built-in waiting mechanisms, and cross-language support.

↑ 61 upvotes · 22 engineers asked this · Developer
Wipro Hard Technical round SeleniumJava

Describe the role of a Step Definition file in Cucumber BDD. How does Cucumber link a Gherkin step to a Java method using annotations like @Given, @When, @Then? Show a complete example with a feature file and its corresponding step definition.

↑ 58 upvotes · 21 engineers asked this · Tester
Capgemini Medium Technical round PlaywrightTypeScript

Explain the different types of locators available in Playwright (CSS, XPath, text, role, test-id). Which are most resilient and why? Explain why role-based locators are preferred over XPath for accessibility and test stability.

↑ 55 upvotes · 19 engineers asked this · Tester
Capgemini Medium Technical round SeleniumJava

What is the Page Object Model (POM) design pattern in Selenium? Why is it used? Show the structure of a POM class for a login page and explain how it improves test maintainability.

↑ 55 upvotes · 34 engineers asked this · Tester
Wipro Hard Technical round SeleniumJava

Explain the purpose of Data Tables in Cucumber scenarios. How do they differ from Scenario Outline? Show an example where a Data Table passes multiple fields to a single step (e.g., a registration form), and how to read it using DataTable or a list of maps in the step definition.

↑ 54 upvotes · 19 engineers asked this · Tester
Accenture Medium Technical round SeleniumPlaywrightJavaScript

If a team currently using Selenium plans to migrate to Playwright, how would you help them adopt the new framework? Cover project structure, locator migration, parallel execution setup, and CI integration.

↑ 52 upvotes · 15 engineers asked this · Developer
Wipro Hard Technical round Java

Explain the usage of Java collections in automation frameworks. When would you use a List vs Set vs Map in a test framework? Give real examples: storing test data in a List, deduplicating locators in a Set, mapping test case names to results in a LinkedHashMap.

↑ 51 upvotes · 19 engineers asked this · Tester
Wipro Hard Technical round Java

Write a program to remove duplicate elements from an array and calculate the frequency of each character in a string. For the array: use a LinkedHashSet or a frequency map. For character frequency: use a HashMap<Character, Integer>. Analyse time and space complexity of each approach.

↑ 49 upvotes · 18 engineers asked this · Tester
Wipro Hard Technical round SeleniumJava

Provide an XPath expression to fetch values from the second column of a web table. Explain absolute vs relative XPath, axes like following-sibling and child, and how to handle tables with dynamic row counts.

↑ 47 upvotes · 16 engineers asked this · Tester
Capgemini Medium Technical round JavaScriptTypeScriptPlaywright

Explain the filter(), map(), and reduce() array methods in JavaScript with examples. Show how you would use them together to process a list of test results: filtering failures, mapping to error messages, and reducing to a summary count.

↑ 47 upvotes · 17 engineers asked this · Tester
Wipro Hard Technical round SeleniumJava

How are Tags used to organise or control test execution in Cucumber? Explain how to tag scenarios with @smoke, @regression, @wip, how to run only specific tagged tests from the command line, and how tags can be combined with AND/OR/NOT logic.

↑ 46 upvotes · 17 engineers asked this · Tester
Accenture Medium Technical round SeleniumJava

How can you retrieve all the options available in a dropdown using Selenium? Explain the Select class, how to handle both static and dynamic dropdowns, and edge cases like dropdowns built with div/ul instead of the native select element.

↑ 44 upvotes · 18 engineers asked this · Developer
Capgemini Medium Technical round PlaywrightTypeScript

Explain the difference between Playwright's page.fill(), page.type(), and page.locator().pressSequentially(). When would you use each? How does Playwright handle Angular or React forms that rely on input events?

↑ 44 upvotes · 27 engineers asked this · Tester
Wipro Hard Technical round SeleniumJava

Explain different ways to perform page scrolling during Selenium automation. Cover: JavascriptExecutor (scrollBy, scrollIntoView), Actions class for keyboard scroll, scrolling to a specific element, and infinite scroll testing strategies.

↑ 43 upvotes · 15 engineers asked this · Tester
Capgemini Medium Technical round PlaywrightJavaJenkins

What is test reporting in automation? How do you generate Allure reports in a Playwright/TestNG framework? What information should a good test report contain and how do you integrate it with your CI/CD pipeline?

↑ 43 upvotes · 26 engineers asked this · Tester
Capgemini Medium Technical round PlaywrightTypeScript

Explain the debug process in Playwright. Cover Playwright Inspector (PWDEBUG=1), trace viewer (playwright show-trace), headed mode, slow-motion, and how to capture video/screenshots on test failure for CI debugging.

↑ 42 upvotes · 15 engineers asked this · Tester
Capgemini Medium Technical round PlaywrightTypeScriptJavaScript

What is cross-browser testing? How do you run the same Playwright test suite on Chrome, Firefox, and WebKit simultaneously? How do you handle browser-specific issues in your automation code?

↑ 38 upvotes · 22 engineers asked this · Tester
Deloitte Medium Technical round 2-6 years

A client wants 100% test automation coverage before their next release. Is this a reasonable goal? How would you push back or reframe it?

↑ 16 upvotes · 8 engineers asked this · QA Engineer

Practice these questions with AI feedback

Get instant grading on your answers, identify your weak areas, and generate a personalised 14-day study plan — all free.

Build my study plan →

Same topic at specific companies

Accenture Testing Wipro Testing Capgemini Testing Deloitte Testing

Related topics

DSA / Arrays System Design DSA / Trees DSA / Graphs Behavioral Domain DevOps API Testing DSA / Hashmaps GCP / Real-time Data Java / Pub-Sub React / Performance Node.js / Memory SQL / Query Optimization Python / Async AWS / Lambda Kafka / Consumer Microservices / Saga Pattern TypeScript / Type System MongoDB / Indexing Security / SQL Injection Performance / Latency Tail Redis / Cache Stampede Elasticsearch / Cluster Health GraphQL / Security Data Engineering / Exactly Once Snowflake / Architecture PySpark / Core Concepts Airflow / Scheduling Web / WebAssembly Debugging / Production JavaScript / V8 Engine

Frequently asked questions

What is Fluent Wait in Selenium and when is it used? Compare it with WebDriverWait, explain how to configure polling interval and ignored exceptions, and give a scenario where Fluent Wait is the only viable option.
What is Fluent Wait in Selenium and when is it used? Compare it with WebDriverWait, explain how to configure polling interval and ignored exceptions, and give a scenario where Fluent Wait is the only viable option.
What is Parallel Testing and why is it useful in automation? Explain how to configure parallel execution in TestNG using the suite XML, the thread-safety concerns with WebDriver instances, and how to manage them with ThreadLocal.
What is Parallel Testing and why is it useful in automation? Explain how to configure parallel execution in TestNG using the suite XML, the thread-safety concerns with WebDriver instances, and how to manage them with ThreadLocal.
What are the different wait mechanisms in Selenium (Implicit, Explicit, Fluent Wait), and when should each be used? Explain the downsides of Thread.sleep() and how WebDriverWait improves reliability.
What are the different wait mechanisms in Selenium (Implicit, Explicit, Fluent Wait), and when should each be used? Explain the downsides of Thread.sleep() and how WebDriverWait improves reliability.
Explain the difference between a Scenario and a Scenario Outline in Cucumber BDD. When would you use a Scenario Outline, and how do you supply multiple data rows using the Examples table? Show a real-world login test example.
Explain the difference between a Scenario and a Scenario Outline in Cucumber BDD. When would you use a Scenario Outline, and how do you supply multiple data rows using the Examples table? Show a real-world login test example.
What is an Automation Framework? Explain its structure.
What is an Automation Framework? Explain its structure. Describe the layers: test data, page objects, utilities, test runner, reporters. Why is a framework needed vs raw Selenium scripts? Compare Data-Driven, Keyword-Driven, and Hybrid frameworks.