Skip to content

Commit

Permalink
Merge pull request #2502 from teamcapybara/drop_support_for_obsolete_…
Browse files Browse the repository at this point in the history
…selenium

Drop support for Selenium < 3.142.7
  • Loading branch information
twalpole authored Oct 23, 2021
2 parents 554c2ac + 572f91f commit 12b9e16
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions History.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@ Release date: unreleased
### Changed

* Ruby 2.6.0+ is now required
* Minimum selenium-webdriver support is now 3.142.7

### Added

* Support for selenium-webdriver 4.x
* `allow_label_click` accepts click options to be used when clicking an associated label
* Deprecated `allow_gumbo=` in favor of `use_html5_parsing=` to enable use of Nokogiri::HTL5 when available
* `Session#active_element` returns the element with focus - Not supported by the `RackTest` driver [Sean Doyle]
Expand Down
2 changes: 1 addition & 1 deletion capybara.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ Gem::Specification.new do |s|
s.add_development_dependency('rubocop-rspec', ['~>2.0'])
s.add_development_dependency('sauce_whisk')
s.add_development_dependency('selenium_statistics')
s.add_development_dependency('selenium-webdriver', ['~>3.5'])
s.add_development_dependency('selenium-webdriver', ['>=3.142.7', '<5.0'])
s.add_development_dependency('sinatra', ['>= 1.4.0'])
s.add_development_dependency('uglifier')
s.add_development_dependency('webdrivers', ['>=3.6.0']) # if ENV['CI']
Expand Down
2 changes: 1 addition & 1 deletion gemfiles/Gemfile.base-versions
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ gem 'rack', '1.6.0'
gem 'nokogiri', '~>1.8.0'
gem 'xpath', '~>3.2.0'
gem 'rspec', '~>3.5.0'
gem 'selenium-webdriver', '3.141.0'
gem 'selenium-webdriver', '3.142.7'
gem 'irb', '~>1.1.1'
gem 'webdrivers', '~>4.5.0'
2 changes: 1 addition & 1 deletion lib/capybara/selenium/driver.rb
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def load_selenium
Gem::Version.new(Selenium::WebDriver::VERSION)
end

unless Gem::Requirement.new('>= 3.5.0').satisfied_by? @selenium_webdriver_version
unless Gem::Requirement.new('>= 3.142.7').satisfied_by? @selenium_webdriver_version
warn "Warning: You're using an unsupported version of selenium-webdriver, please upgrade."
end

Expand Down

0 comments on commit 12b9e16

Please sign in to comment.