FIX: Latest Selenium gem broke Google Groups import script

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.

diff --git a/script/import_scripts/google_groups.rb b/script/import_scripts/google_groups.rb
index 0c79b6e..64c16a4 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

GitHub sha: f0fea599

1 Like

This commit has been mentioned on Discourse Meta. There might be relevant details there: