Example app for running chromium headlessly
Ruby Shell Gherkin
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
features
selenium
Dockerfile
Dockerfile.selenium-client
Gemfile
Gemfile.lock
README.md
docker-compose.yml

README.md

Using Selenium with Headless Chromium

As of April 21, 2017, the upcoming release of Google Chrome 59 will support the --headless option, meaning you can run chrome without xvfb on your CI system.

The latest build of chromium also lets you do this, but unfortunately the 2.29 build of chromedriver (the interface between selenium and chrome/chromium) does not support chrome > 58.

This is a sample of a custom-built chromedriver with latest headless chromium.

Running the sample

To run a test container in which ruby/capybara runs a local chromedriver, run:

docker-compose build test
docker-compose run test

All tests should pass!

To test out a modified selenium base node image, run:

docker-compose build
docker-compose run testselenium