TypeScript Interview Questions 2026

Published July 22, 2026 · Updated July 22, 2026

10 TypeScript interview questions from Accenture, Capgemini, Microsoft. All difficulty levels, all roles. Upvoted by engineers who were asked them.

10 questions
Companies: Accenture, Capgemini, Microsoft
492 upvotes

TypeScript Questions by Company

Accenture (1)

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

Capgemini (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 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 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 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 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
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

Microsoft (1)

Microsoft Medium Technical round 2-5 yearsTypeScript

Explain the difference between a TypeScript interface and a type alias. Give a concrete case where only one of them can express what you need.

↑ 36 upvotes · 28 engineers asked this · Senior SDE

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 →

TypeScript questions at each company

Capgemini TypeScript

Frequently asked questions

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.
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.
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.