require 'keep_alive' http_client = Selenium::WebDriver::Remote::Http::KeepAlive.new # Selenium Example driver = Selenium::Driver.for :chrome, http_client: http_client # Watir Example browser = Watir::Browser.new :chrome, http_client: http_client