Running a Chrome browser inside a Docker container with Selenium used to be a challenging thing. Since Chrome 59 shipped with a headless mode, this has been made much easier.
What is Selenium Webdriver?WebDriver is an automating web application testing tool.
Developed in collaboration with the Chromium team, is a standalone server which implements WebDriver's.The ChromeDriver consists of three separate pieces. There is the browser itself ('chrome'), the language bindings provided by the Selenium project ('the driver') and an executable downloaded from the Chromium project which acts as a bridge between 'chrome' and the 'driver'.