groupon / selenium-download

allow downloading of latest selenium standalone server and chromedriver
BSD 3-Clause "New" or "Revised" License
28 stars 25 forks source link

selenium-download won't download chromedriver 115+ #63

Open joshden opened 1 year ago

joshden commented 1 year ago

selenium-download isn't downloading versions of chromedriver later than 114. Here's an example (in Git Bash):

Josh@Joshden MINGW64 ~/app (master)
$ rm bin/*

Josh@Joshden MINGW64 ~/app (master)
$ node selenium-setup.js 
[testium] grabbing selenium chromedriver 114.0.5735.90
[testium] grabbing selenium standalone server 3.141.59

Josh@Joshden MINGW64 ~/app (master)
$ bin/chromedriver.exe --version
ChromeDriver 114.0.5735.90 (386bc09e8f4f2e025eddae123f36f6263096ae49-refs/branch-heads/5735@{#1052})

This is our selenium-setup.js file:

const selenium = require('selenium-download');

selenium.update(__dirname + '/bin', function (error) {
  if (error) console.error(error.stack);
  process.exit(0);
});

I assume this is due to the new Chrome For Test, starting in Chrome 115, announced in these places:

For now we are moving our project to use the chomedriver npm package and running the chromedriver binary it installs. In the future, we might look into using Chrome For Test and @puppeteer/browsers to install Chrome and chromedriver.