Skip to main content
Version: 1.17

Selenium Grid

Playwright can connect to Selenium Grid Hub to launch Chrome browser, instead of running browser on the local machine. To enable this mode, set SELENIUM_REMOTE_URL environment variable pointing to your Selenium Grid Hub.

SELENIUM_REMOTE_URL=http://internal.grid:4444/wd/hub mvn test

You don't have to change your code, just use BrowserType.launch([options]) as usual.

When using Selenium Grid Hub, you can skip browser downloads.


Internally, Playwright connects to the browser using Chrome DevTools Protocol websocket. This requires Selenium Grid nodes to be directly accessible from the machine that runs Playwright.