selenium-download icon indicating copy to clipboard operation
selenium-download copied to clipboard

selenium-download won't download chromedriver 115+

Open joshden opened this issue 11 months ago • 0 comments

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:

  • https://groups.google.com/g/chromedriver-users/c/clpipqvOGjE?pli=1
  • https://developer.chrome.com/blog/chrome-for-testing/

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.

joshden avatar Jul 28 '23 18:07 joshden