Capgemini Interview Questions 2026
Published July 22, 2026 · Updated July 22, 2026
13 real interview questions asked at Capgemini. Covers Testing, API Testing, Domain, Business Analysis / Requirements, JavaScript / Closures. Reported by engineers who went through the Capgemini process.
13 questions
352 engineers asked
659 upvotes
Testing (8)
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
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
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
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
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
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
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
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
API Testing (2)
Capgemini
Medium
Technical round
PlaywrightRESTTypeScript
Explain the difference between PUT and PATCH in REST APIs. When is each appropriate? Show how you would test both verbs using Playwright's APIRequestContext, and explain how to validate partial vs full resource updates.
↑ 59 upvotes · 22 engineers asked this · Tester
Capgemini
Medium
Technical round
PlaywrightPostmanREST
How do you test a REST API that requires OAuth 2.0 authentication? Walk through obtaining a token (client credentials flow), storing it, using it in subsequent requests, and handling token expiry in your automation framework.
↑ 50 upvotes · 31 engineers asked this · Tester
Domain (1)
Capgemini
Medium
Technical round
JavaScriptTypeScript
Explain async/await in JavaScript. How does it differ from Promise chaining? Write a function that fetches data from three APIs in parallel (Promise.all) and one after another (sequential await). When would you choose each?
↑ 51 upvotes · 32 engineers asked this · Developer
Business Analysis / Requirements (1)
Capgemini
Medium
Technical round
3–6 Years
How do you distinguish between a business requirement, a functional requirement, and a technical requirement? Give an example for an e-commerce checkout.
↑ 82 upvotes · 65 engineers asked this · Business Analyst
JavaScript / Closures (1)
Capgemini
Medium
Technical round
1-4 yearsJavaScript
Write a function that creates 3 buttons where clicking button N alerts N, using a for loop and var. Explain why the naive version is broken and how to fix it.
↑ 25 upvotes · 18 engineers asked this · Developer
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 →
Capgemini interview guides by role
Capgemini questions by technology
More companies
Frequently asked questions
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.
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.
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.
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.
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.
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.
Explain the difference between PUT and PATCH in REST APIs. When is each appropriate? Show how you would test both verbs using Playwright's APIRequestContext, and explain how to validate partial vs full resource updates.
Explain the difference between PUT and PATCH in REST APIs. When is each appropriate? Show how you would test both verbs using Playwright's APIRequestContext, and explain how to validate partial vs full resource updates.
Explain the filter(), map(), and reduce() array methods in JavaScript with examples.
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.