Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
# Changelog
All notable changes to this project will be documented in this file.


# [3.1.2] - 2026-01-19

- Remove dvla-herodotus dependency

# [3.1.1] - 2025-12-12

- Add selenium_safari config
Expand Down
1 change: 0 additions & 1 deletion dvla-browser-drivers.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,5 @@ Gem::Specification.new do |spec|
spec.add_dependency 'apparition', '>= 0.6'
spec.add_dependency 'capybara', '>= 3.37'
spec.add_dependency 'cuprite', '>= 0.14'
spec.add_dependency 'dvla-herodotus', '>= 2.0'
spec.add_dependency 'selenium-webdriver', '>= 4.0'
end
3 changes: 0 additions & 3 deletions lib/dvla/browser/drivers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,8 @@

require 'capybara/apparition'
require 'capybara/cuprite'
require 'dvla/herodotus'
require 'selenium-webdriver'

module DVLA
class Error < StandardError; end

LOG = DVLA::Herodotus.logger('browser-drivers')
end
6 changes: 3 additions & 3 deletions lib/dvla/browser/drivers/meta_drivers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def self.method_missing(method, *args, **kwargs, &)
browser = browser_match.to_sym

kwargs.each do |key, _value|
LOG.warn { "Key: '#{key}' will be ignored | Use one from: '#{SELENIUM_ACCEPTED_PARAMS}'" } unless SELENIUM_ACCEPTED_PARAMS.include?(key)
puts "Key: '#{key}' will be ignored | Use one from: '#{SELENIUM_ACCEPTED_PARAMS}'" unless SELENIUM_ACCEPTED_PARAMS.include?(key)
end

::Capybara.register_driver method do |app|
Expand Down Expand Up @@ -62,7 +62,7 @@ def self.method_missing(method, *args, **kwargs, &)
end
else
kwargs.each do |key, _value|
LOG.warn { "Key: '#{key}' will be ignored | Use one from: '#{OTHER_ACCEPTED_PARAMS}'" } unless OTHER_ACCEPTED_PARAMS.include?(key)
puts "Key: '#{key}' will be ignored | Use one from: '#{OTHER_ACCEPTED_PARAMS}'" unless OTHER_ACCEPTED_PARAMS.include?(key)
end

browser_options = { 'no-sandbox': nil, 'disable-smooth-scrolling': true }
Expand All @@ -82,7 +82,7 @@ def self.method_missing(method, *args, **kwargs, &)
end
end

LOG.info { "Driver set to: '#{method}'" }
puts "Driver set to: '#{method}'"

::Capybara.javascript_driver = method
::Capybara.default_driver = method
Expand Down
2 changes: 1 addition & 1 deletion lib/dvla/browser/drivers/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
module DVLA
module Browser
module Drivers
VERSION = '3.1.1'
VERSION = '3.1.2'
end
end
end