Testing / Playwright Interview questions
What is Playwright?
Playwright is an open-source end-to-end testing and browser automation framework built by Microsoft, first released in 2020. It drives Chromium, Firefox, and WebKit through one API, so the same script runs across all three engines without rewriting selectors or logic.
Instead of going through the WebDriver protocol like older tools, Playwright talks to the browser directly over a persistent connection, which gives it tighter control over network requests, dialogs, downloads, and multiple isolated browser contexts in a single process.
It comes bundled with its own test runner, Playwright Test, plus official bindings for JavaScript/TypeScript, Python, Java, and .NET. Auto-waiting and web-first assertions are built in specifically to cut down on the flaky, timing-related failures common in UI automation.
More Related questions...