Sha256: 090e23498e45869c2c2adfbf099b6e2ba3aeab6bd60b7e49c65db6e0c3deefd2
Contents?: true
Size: 775 Bytes
Versions: 16
Compression:
Stored size: 775 Bytes
Contents
# frozen_string_literal: true require ::File.expand_path("../util/configuration", File.dirname(__FILE__)) require ::File.expand_path("finder_diagnostics", File.dirname(__FILE__)) require "active_support/concern" module Cornucopia module Capybara module Synchronizable extend ActiveSupport::Concern # This function uses Capybara's synchronize function to evaluate a block until # it becomes true. def synchronize_test(seconds = nil, options = {}, &block) seconds ||= ::Capybara.respond_to?(:default_max_wait_time) ? ::Capybara.default_max_wait_time : ::Capybara.default_wait_time document.synchronize(seconds, options) do raise ::Capybara::ElementNotFound unless block.yield end end end end end
Version data entries
16 entries across 16 versions & 1 rubygems