Playwright Interview Questions 2026
Published July 22, 2026 · Updated July 22, 2026
11 Playwright interview questions from Accenture, Capgemini. All difficulty levels, all roles. Upvoted by engineers who were asked them.
11 questions
Companies: Accenture, Capgemini
559 upvotes
Playwright Questions by Company
Accenture (2)
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
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 (9)
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 →
Playwright questions at each company
Frequently asked questions
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.
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.
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.