Skip to content

Commit 6f67dbc

Browse files
committed
Remove dependency on the webdrivers gem
webdrivers no longer works with recent versions of Chrome. Recent versions of selenium-webdriver (newer than 4.11) achieve the same effect. One caveat with this change: it implicitly requires Ruby 3 as that's the requirement for selenium-webdriver 4.11+.
1 parent 0794cc1 commit 6f67dbc

2 files changed

Lines changed: 1 addition & 3 deletions

File tree

lib/solidus_dev_support/rspec/capybara.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
# frozen_string_literal: true
22

3-
require 'webdrivers/chromedriver'
4-
53
# Allow to override the initial windows size
64
CAPYBARA_WINDOW_SIZE = ENV.fetch('CAPYBARA_WINDOW_SIZE', '1920x1080').split('x', 2).map(&:to_i)
75
CAPYBARA_WINDOW_WIDTH = CAPYBARA_WINDOW_SIZE[0]

solidus_dev_support.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,6 @@ Gem::Specification.new do |spec|
4545
spec.add_dependency 'rubocop-performance', '~> 1.5'
4646
spec.add_dependency 'rubocop-rails', '~> 2.3'
4747
spec.add_dependency 'rubocop-rspec', '~> 2.0'
48+
spec.add_dependency 'selenium-webdriver', '~> 4.11'
4849
spec.add_dependency 'solidus_core', ['>= 2.0', '< 5']
49-
spec.add_dependency 'webdrivers', '>= 4.4'
5050
end

0 commit comments

Comments
 (0)