Sha256: b7bcc6a334a95db6d52579abe79d04775252634ff106b852b7f34eea43018f75

Contents?: true

Size: 428 Bytes

Versions: 6

Compression:

Stored size: 428 Bytes

Contents

# frozen_string_literal: true

module CapybaraAtoms
private

  def read_atom(function)
    @atoms ||= Hash.new do |hash, key|
      hash[key] = begin
        File.read(File.expand_path("../../atoms/#{key}.min.js", __FILE__))
      rescue Errno::ENOENT
        super
      end
    end
    @atoms[function]
  end
end

Selenium::WebDriver::Remote::Bridge.prepend CapybaraAtoms unless ENV['DISABLE_CAPYBARA_SELENIUM_OPTIMIZATIONS']

Version data entries

6 entries across 6 versions & 3 rubygems

Version Path
trusty-cms-7.0.9.1 vendor/bundle/ruby/3.3.0/gems/capybara-3.40.0/lib/capybara/selenium/patches/atoms.rb
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/capybara-3.40.0/lib/capybara/selenium/patches/atoms.rb
capybara-3.40.0 lib/capybara/selenium/patches/atoms.rb
capybara-3.39.2 lib/capybara/selenium/patches/atoms.rb
capybara-3.39.1 lib/capybara/selenium/patches/atoms.rb
capybara-3.39.0 lib/capybara/selenium/patches/atoms.rb