From f0fea5991f42c06b29df8298463aab57a6eb6112 Mon Sep 17 00:00:00 2001 From: Gerhard Schlager Date: Wed, 10 Jul 2019 09:45:25 +0200 Subject: [PATCH] FIX: Latest Selenium gem broke Google Groups import script Selenium uses Keep-Alive since version 3.141, so the net-http-persistent gem shouldn't be needed anymore. --- script/import_scripts/google_groups.rb | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/script/import_scripts/google_groups.rb b/script/import_scripts/google_groups.rb index 0c79b6e8a8a..64c16a4a78d 100755 --- a/script/import_scripts/google_groups.rb +++ b/script/import_scripts/google_groups.rb @@ -6,7 +6,6 @@ require "bundler/inline" gemfile(true) do source "https://rubygems.org" - gem "net-http-persistent" gem "nokogiri" gem "webdrivers" end @@ -15,7 +14,6 @@ require "fileutils" require "nokogiri" require "optparse" require "webdrivers" -require 'selenium/webdriver/remote/http/persistent' require "set" require "yaml" @@ -26,8 +24,7 @@ def driver chrome_args = ["headless", "disable-gpu"] chrome_args << "no-sandbox" if inside_container? options = Selenium::WebDriver::Chrome::Options.new(args: chrome_args) - http_client = Selenium::WebDriver::Remote::Http::Persistent.new - Selenium::WebDriver.for(:chrome, options: options, http_client: http_client) + Selenium::WebDriver.for(:chrome, options: options) end end