Sha256: fce4e60b5ed152aab6c6b41cae64267696637649f33357ee007ad74c6e324c48

Contents?: true

Size: 218 Bytes

Versions: 18

Compression:

Stored size: 218 Bytes

Contents

def wait_for_jquery
  counter = 0
  while page.execute_script('return $.active').to_i > 0
    counter += 1
    sleep(0.1)
    raise 'Interrupted: JQuery activity took longer than 5 seconds.' if counter >= 50
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
autonumeric-rails-2.0.0.1 spec/support/wait_for_jquery.rb
autonumeric-rails-2.0 spec/support/wait_for_jquery.rb
autonumeric-rails-1.9.46.2 spec/wait_for_jquery.rb
autonumeric-rails-1.9.46 spec/support/wait_for_jquery.rb
autonumeric-rails-1.9.43 spec/support/wait_for_jquery.rb
autonumeric-rails-1.9.42 spec/support/wait_for_jquery.rb
autonumeric-rails-1.9.39 spec/support/wait_for_jquery.rb
autonumeric-rails-1.9.37 spec/support/wait_for_jquery.rb
autonumeric-rails-1.9.33 spec/support/wait_for_jquery.rb
autonumeric-rails-1.9.27 spec/support/wait_for_jquery.rb
autonumeric-rails-1.9.25.0 spec/support/wait_for_jquery.rb
autonumeric-rails-1.9.24.0 spec/support/wait_for_jquery.rb
autonumeric-rails-1.9.22.1 spec/support/wait_for_jquery.rb
autonumeric-rails-1.9.22 spec/support/wait_for_jquery.rb
autonumeric-rails-1.9.21 spec/support/general.rb
autonumeric-rails-1.9.19.0 spec/support/general.rb
autonumeric-rails-1.9.18.1 spec/support/general.rb
autonumeric-rails-1.9.18.0 spec/support/general.rb