Capgemini Playwright Interview Questions 2026

Published July 22, 2026 · Updated July 22, 2026

9 real Playwright interview questions asked at Capgemini. Upvoted by engineers who cleared the loop. Covers Technical rounds.

9 questions
203 engineers asked
446 upvotes
Company: Capgemini
Technology: Playwright

All Playwright Questions Asked at Capgemini

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

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 →

More Capgemini Questions

Capgemini JavaScript Questions Capgemini TypeScript Questions

Browse by company

Amazon Google Microsoft Flipkart Swiggy Meta Apple Netflix Uber Airbnb Stripe Razorpay PhonePe Paytm Zomato Salesforce Oracle Adobe LinkedIn Atlassian Accenture Deloitte Wipro Infosys TCS Capgemini PayU General Anthropic OpenAI TikTok JPMorgan Walmart Spotify DoorDash Goldman Sachs Revolut Canva Capital One Lyft SAP Siemens Shopify Grab Cognizant LTIMindtree Myntra Hotstar Twitter Snowflake

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