This buildpack installs
(the Selenium driver for Chrome) in a Heroku slug.
This buildpack only installs the
chromedriver binary. To use Selenium with Chrome
on Heroku, you'll also need Chrome. We suggest one of these buildpacks:
By default, this buildpack will download the latest release, which is provided by Google.
If you've installed heroku-buildpack-google-chrome before this buildpack, it will download the latest supported chromedriver which has the same build version of the Chrome installed previously. - Here's the rule of the version number of Google Chrome: https://www.chromium.org/developers/version-numbers - Here's the rule of version selection implemented in this buildpack: http://chromedriver.chromium.org/downloads/version-selection - This only works for stable version and beta version of Chrome as describe in this document.
You can control the specific version by setting the
environment variable to an explicit version e.g.
Make sure you publish this buildpack in the buildpack registry
heroku buildpacks:publish heroku/chromedriver master
Copy the snippet above into CLI.