Architecture + speed
Playwright
Playwright drives browsers via the Chrome DevTools Protocol (CDP) for Chromium + native protocols for Firefox and WebKit. Single library, no Grid layer. Single-test runs are 2-4× faster than equivalent Selenium because the WebDriver protocol hop is eliminated.
Selenium
Selenium drives browsers via the W3C WebDriver standard — every action serialises through the driver process. Slower per-action but proven at enormous scale, with mature Grid orchestration for parallelism. Selenium 4 BiDi narrows the gap but doesn't close it.