In this quick article I will show you how to quickly upgrade your playwright npm package to latest version in just a few simple steps.
Official documentation HERE
Steps
- check current oudated packages from CLI with the following command
npm outdated

Note: in the above example, we currently have ‘@playwright/test’ v1.58.2, and the latest version is v1.59.1
2. update the package to latest version using the following command
npm install -D @playwright/test@latest
3. install the dependencies for the new latest playwright version
npx playwright install --with-deps
4. Optional: verify the current installed Playwright version
npx playwright --version

Congrats, you have the latest Playwright version installed in your project. Happy testing!
Post Views: 19