Module: TransactionalCapybara::AjaxHelpers

Defined in:
lib/transactional_capybara/ajax_helpers.rb

Defined Under Namespace

Classes: PageWaiting

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.ajax_finished?(page) ⇒ Boolean

Returns:

  • (Boolean)


69
70
71
# File 'lib/transactional_capybara/ajax_helpers.rb', line 69

def self.ajax_finished?(page)
  PageWaiting.new(page).finished_all_ajax_requests?
end

.wait_for_ajax(page) ⇒ Object



61
62
63
# File 'lib/transactional_capybara/ajax_helpers.rb', line 61

def self.wait_for_ajax(page)
  PageWaiting.new(page).wait_for_ajax
end

Instance Method Details

#ajax_finished?Boolean

Returns:

  • (Boolean)


65
66
67
# File 'lib/transactional_capybara/ajax_helpers.rb', line 65

def ajax_finished?
  TransactionalCapybara::AjaxHelpers.ajax_finished?(page)
end

#wait_for_ajaxObject



57
58
59
# File 'lib/transactional_capybara/ajax_helpers.rb', line 57

def wait_for_ajax
  TransactionalCapybara::AjaxHelpers.wait_for_ajax(page)
end