Sha256: b8f6251f43ed5bdf36b4e0f16fd902cdaa7b03acd1dfcc84116360e9029ed420

Contents?: true

Size: 260 Bytes

Versions: 6

Compression:

Stored size: 260 Bytes

Contents

# frozen_string_literal: true

module PauseDurationFix
  def encode
    super.tap { |output| output[:duration] ||= 0 }
  end
end

if defined?(::Selenium::WebDriver::Interactions::Pause)
  ::Selenium::WebDriver::Interactions::Pause.prepend PauseDurationFix
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
capybara-3.10.1 lib/capybara/selenium/patches/pause_duration_fix.rb
capybara-3.10.0 lib/capybara/selenium/patches/pause_duration_fix.rb
capybara-3.9.0 lib/capybara/selenium/patches/pause_duration_fix.rb
capybara-3.8.2 lib/capybara/selenium/patches/pause_duration_fix.rb
capybara-3.8.1 lib/capybara/selenium/patches/pause_duration_fix.rb
capybara-3.8.0 lib/capybara/selenium/patches/pause_duration_fix.rb