---
title: "Playwright vs Selenium: a sourced comparison table"
description: "Playwright and Selenium are both Apache-2.0 browser automation projects. Playwright gives one API over pinned Chromium, Firefox and WebKit builds with auto-waiting and its own runner; Selenium implements W3C WebDriver in six languages and scales out with Selenium Grid."
url: "https://www.agentsandbox.host/p/playwright-vs-selenium/"
site: "AgentSandbox.host"
author: "AgentSandbox.host editors"
published: "2026-11-26"
updated: "2026-11-26"
---

# Playwright vs Selenium: a sourced comparison table

AgentSandbox.host editors. Published 2026-11-26, updated 2026-11-26.

Playwright and Selenium are both Apache-2.0 browser automation projects. Playwright gives one API over pinned Chromium, Firefox and WebKit builds with auto-waiting and its own runner; Selenium implements W3C WebDriver in six languages and scales out with Selenium Grid.

Data as of 2026-11-26. The same rows: https://www.agentsandbox.host/data/playwright-vs-selenium.csv (CSV), https://www.agentsandbox.host/data/playwright-vs-selenium.json (JSON).

Table: Playwright and Selenium compared, from each project's own documentation
| Tool | License | Latest release checked | Official languages | Browsers | How it drives the browser | Waiting for the page | Test runner | Parallel on one machine | Across machines | Browser and driver downloads | Official Docker image | Source | Checked |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Playwright | Apache-2.0 | 1.65.1 (Node.js), 1.65.2 (Python) | JavaScript and TypeScript, Python, Java, .NET | Chromium, Firefox and WebKit builds pinned to each release; Chrome and Edge through channels | Its own library with one API for all three engines | Actions wait for actionability checks; web-first assertions retry for 5 seconds by default | Playwright Test for Node.js; the pytest plugin for Python; JUnit, TestNG, MSTest, NUnit or xUnit elsewhere | Worker processes, by default half the logical CPU cores, each with its own browser | Sharding with --shard=x/y, then merge-reports to combine the results | npx playwright install downloads the browser builds a release needs | mcr.microsoft.com/playwright, tags such as v1.65.1-noble | [playwright.dev/docs/intro](https://playwright.dev/docs/intro) | 2026-11-26 |
| Selenium | Apache-2.0 | 4.54.0 | Java, Python, C#, Ruby, JavaScript, Kotlin | Chrome, Edge, Firefox, Safari and Internet Explorer through their drivers | An implementation of the W3C WebDriver specification | Implicit wait defaults to 0; explicit waits poll for a condition you write | Your language's runner; the docs show JUnit, pytest, MSTest, RSpec and Mocha | Through your test framework, for example pytest-xdist | Selenium Grid routes sessions to Nodes on many machines | Selenium Manager, a Rust command-line tool the bindings use by default | selenium/standalone-chrome, selenium/hub and selenium/node-chrome, tags such as 4.54.0-20261124 | [www.selenium.dev/documentation](https://www.selenium.dev/documentation/) | 2026-11-26 |

## Method

Every cell was read on the checked date from each project's own documentation, release notes or package registry, listed under the table; each row links the project's main page.

## How do Playwright and Selenium differ in one paragraph?

Playwright and Selenium differ mainly in scope. Playwright is a library plus a test runner that downloads its own browser builds and waits for the page automatically ([Playwright repository](https://github.com/microsoft/playwright), read 2026-11-26). Selenium is "an umbrella project for a range of tools and libraries that enable and support the automation of web browsers", built on "the W3C WebDriver specification", with Selenium Grid for running browsers on remote machines ([Selenium documentation](https://www.selenium.dev/documentation/), read 2026-11-26).

## How does each one wait for the page?

Playwright waits before acting and while asserting; Selenium waits only where you tell it to.

- **Playwright.** "Playwright performs a range of actionability checks on the elements before making actions", and web-first assertions retry; "By default, the timeout for assertions is set to 5 seconds" ([Playwright actionability](https://playwright.dev/docs/actionability), [Playwright assertions](https://playwright.dev/docs/test-assertions), read 2026-11-26).
- **Selenium.** The implicit wait's "default value is `0`, which means that if the element is not found, it will immediately return an error." Explicit waits "poll the application for a specific condition", and the docs warn: "Do not mix implicit and explicit waits" ([Selenium waits](https://www.selenium.dev/documentation/webdriver/waits/), read 2026-11-26).

## How does each one run many browsers at once?

Both run many browsers at once, by different routes.

Table: Scaling out with Playwright and Selenium

| Need | Playwright | Selenium |
|---|---|---|
| Several tests on one machine | Worker processes; the default is half the logical CPU cores ([Playwright TestConfig](https://playwright.dev/docs/api/class-testconfig)) | Your test framework's parallel mode, for example `pytest --numprocesses auto` with pytest-xdist |
| Many machines | `npx playwright test --shard=1/4` on each machine, then `npx playwright merge-reports` ([Playwright sharding](https://playwright.dev/docs/test-sharding)) | Selenium Grid: tests send sessions to one address and Nodes on many machines run them ([Selenium Grid](https://www.selenium.dev/documentation/grid/)) |
| Mixed browser versions and platforms | One browser build per release, plus Chrome and Edge channels | Grid Nodes with different browsers, versions and systems |

Our guides cover [parallel workers and sharding](https://www.agentsandbox.host/p/run-browser-tests-in-parallel/) and [Selenium Grid in Docker](https://www.agentsandbox.host/p/selenium-grid-docker/) step by step.

## How do I choose between them?

Choose by the constraints you already have, not by reputation.

1. **Language.** A Ruby or Kotlin team has an official Selenium binding and no official Playwright one.
2. **Browsers.** You need Safari itself: Selenium with its driver. WebKit on Linux in a container: Playwright.
3. **Existing infrastructure.** A working Selenium Grid and a large suite are a reason to stay; a new project with no runner yet gets one with Playwright Test.
4. **Flaky waits.** If most failures are timing, Playwright's auto-waiting removes the class of bug that explicit waits leave to the author. Our guide to [fixing flaky browser tests](https://www.agentsandbox.host/p/fix-flaky-browser-tests/) covers both tools.

## What we read for this page

- [Playwright repository](https://github.com/microsoft/playwright), read 2026-11-26
- [Playwright installation](https://playwright.dev/docs/intro), [languages](https://playwright.dev/docs/languages), [browsers](https://playwright.dev/docs/browsers), [release notes](https://playwright.dev/docs/release-notes), read 2026-11-26
- [Playwright actionability](https://playwright.dev/docs/actionability) and [assertions](https://playwright.dev/docs/test-assertions), read 2026-11-26
- [Playwright TestConfig](https://playwright.dev/docs/api/class-testconfig), [parallelism](https://playwright.dev/docs/test-parallel) and [sharding](https://playwright.dev/docs/test-sharding), read 2026-11-26
- [Playwright Docker](https://playwright.dev/docs/docker), read 2026-11-26
- [npm: @playwright/test](https://www.npmjs.com/package/@playwright/test) and [PyPI: playwright](https://pypi.org/project/playwright/), read 2026-11-26
- [Selenium documentation](https://www.selenium.dev/documentation/), [getting started](https://www.selenium.dev/documentation/webdriver/getting_started/) and [waits](https://www.selenium.dev/documentation/webdriver/waits/), read 2026-11-26
- [Selenium Grid](https://www.selenium.dev/documentation/grid/), read 2026-11-26
- [docker-selenium](https://github.com/SeleniumHQ/docker-selenium) and [Selenium releases](https://github.com/SeleniumHQ/selenium/releases), read 2026-11-26
- [pytest-xdist distribution](https://pytest-xdist.readthedocs.io/en/stable/distribution.html), read 2026-11-26

## FAQ

### Is Playwright faster than Selenium?

Neither project publishes a speed comparison, and run time depends far more on your pages, waits and parallelism than on the library. What differs by design is waiting, which Playwright does before every action and Selenium leaves to waits you write, and parallelism, which Playwright Test runs in worker processes out of the box.

### Which languages do Playwright and Selenium support?

Playwright supports JavaScript and TypeScript, Python, Java and .NET. Selenium's official bindings are Java, Python, C#, Ruby, JavaScript and Kotlin.

### Can Playwright test Safari?

Playwright tests WebKit, the engine behind Safari, on Linux, macOS and Windows. Selenium drives the Safari browser itself through its driver.

### Do I need Selenium Grid to run tests in parallel?

Not on one machine; your test framework can run several sessions at once. Selenium Grid is for running sessions on remote machines and across browser versions and platforms.

### Should I migrate from Selenium to Playwright?

Only with a reason the table supports, such as flaky waits, WebKit coverage or wanting a built-in runner. A large, stable Selenium suite on a working Grid keeps its value; mixed languages such as Ruby or Kotlin have no official Playwright binding.
