heroku-buildpack-chrome-for-testing

by heroku

README.md

Heroku Buildpack, Chrome for Testing

This buildpack installs Google Chrome browser chrome & chromedriver, the Selenium driver for Chrome, in a Heroku app.

Background

In summer 2023, the Chrome development team addressed a long-standing problem with keeping Chrome & Chromedriver versions updated and aligned with each other for automated testing environments. This buildpack follows this strategy to keep chrome & chromedriver versions in-sync.

Installation

Important

If migrating from a previous Chrome-chromedriver installation, then remove any pre-existing Chrome or Chromedriver buildpacks from the app.

heroku buildpacks:add -i 1 heroku-community/chrome-for-testing

Deploy the app to install Chrome for Testing. 🚀

Selecting the Chrome Release Channel

By default, this buildpack will download the latest Stable release, which is provided by Google.

You can control the channel of the release by setting the GOOGLE_CHROME_CHANNEL config variable to Stable, Beta, Dev, or Canary, and then deploy/build the app.

Releasing a new version

For buildpack maintainers only.

  1. Create a new release on GitHub.
  2. Publish the release tag in Heroku Buildpack Registry.

CLI Installation

For new applications:

$ heroku create --buildpack https://github.com/heroku/heroku-buildpack-chrome-for-testing.git

For existing applications:

$ heroku buildpacks:set https://github.com/heroku/heroku-buildpack-chrome-for-testing.git -a YOUR_APP_NAME