Skip to main content

Supported languages

Introduction

Playwright is available in multiple languages that share the same underlying implementation. All core features for automating the browser are supported in all languages, while testing ecosystem integration is different. Pick the language based on your experience, familiarity with its testing ecosystem and your project constraints. For the best experience pick the test runner that we recommend for each language.

JavaScript and TypeScript

Playwright for Node.js comes with its own test runner that provides great parallelization mechanism, screenshot assertions, html reporter, automatic tracing etc.

Python

Playwright Pytest plugin is the recommended way to run end-to-end tests. It provides context isolation, running it on multiple browser configurations and more out of the box.

Java

You can choose any testing framework such as JUnit or TestNG based on your project requirements.

.NET

Playwright for .NET comes with NUnit base classes and MSTest base classes for writing end-to-end tests.