lib/aranha/selenium/executables.rb



# frozen_string_literal: true

module Aranha
  module Selenium
    module Executables
      class << self
        enable_simple_cache

        def env
          ::EacRubyUtils::Envs.local
        end

        private

        %w[chromedriver geckodriver].each do |program|
          define_method("#{program.underscore}_uncached") do
            env.executable(program, '--version')
          end
        end
      end
    end
  end
end