- install .NET SDK 5 with installer: https://dotnet.microsoft.com/download/dotnet/5.0
- install necessary build tools:
./build.sh --init # restart terminal after that
- Checkout the upstream main/release branch of the
playwrightrepository. - Checkout the main/release branch of the
playwright-dotnetrepository. - Pick the latest driver from GitHub Action where you want to roll to. For releases, it should be
1.X.Y. For main branch, it should be something like1.X.Y-<timestamp>. - By default it will pick the
playwrightproject from../playwright. You can override it by setting thePW_SRC_DIRenvironment variable.
./build.sh --roll <driver-version>This will complete the entire process (downnload and set the new driver, re-generate API and transport channels, update the README).