All Projects → erithmetic → headless-chromium-selenium

erithmetic / headless-chromium-selenium

Licence: other
Example app for running chromium headlessly

Programming Languages

ruby
36898 projects - #4 most used programming language
shell
77523 projects
Gherkin
971 projects

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
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].