(If you already have the gem installed make sure you have version 3.4.1 or higher.) Then copy and paste the following Ruby script: require 'selenium-webdriver' options = Selenium::WebDriver::Chrome::Options.new(args: ['headless']) driver = Selenium::WebDriver.for(:chrome, options: options) driver.get('http://stackoverflow.com/') puts driver.title driver.quit Run the Ruby script, and if everything