Apparently, if you pass chromedriver-version to setup-chromedriver, it will install the given Chromedriver version, but it will also install latest Chrome which might not be compatible to the given Chromedriver version.
There is now a better way to install the same Chrome and Chromedriver, using Chrome for Testing and npx @puppeteer/browsers install ....
Apparently, if you pass
chromedriver-version
tosetup-chromedriver
, it will install the given Chromedriver version, but it will also install latest Chrome which might not be compatible to the given Chromedriver version.There is now a better way to install the same Chrome and Chromedriver, using Chrome for Testing and
npx @puppeteer/browsers install ...
.