Search code examples
azure-devopsazure-pipelinesplaywright

How do I specify playwright chromium version in azure pipeline


We have a pipeline in azure which runs a set of Playwright tests as part of the process. This have be working well until a few days ago with the following PowerShell script as part of the pipeline.

npm install 
npx playwright install

This was the working response

Downloading Chromium 125.0.6422.26 (playwright build v1117)[2m from https://playwright.azureedge.net/builds/chromium/1117/chromium-win64.zip[22m

Now suddenly this has changed to this and we get issues

Downloading Chromium 127.0.6533.17 (playwright build v1124)[2m from https://playwright.azureedge.net/builds/chromium/1124/chromium-win64.zip[22m

And version 126 has been skipped. Azure now fails to run the tests because it does not yet support chrome 127. How do I specify a version number?

Even NuGet in VS is only offering version 126 as a update. enter image description here

Thanks for any advise


Solution

  • How do I specify a version number?

    You can change your PowerShell script to the following one to specify to use the [email protected] version.

    npm install 
    npx [email protected] install
    

    Then it will download the Chromium 125.0.6422.26.

    enter image description here