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)


100
101
102
# File 'lib/transactional_capybara/ajax_helpers.rb', line 100

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

.wait_for_ajax(page) ⇒ Object



92
93
94
# File 'lib/transactional_capybara/ajax_helpers.rb', line 92

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

Instance Method Details

#ajax_finished?Boolean

Returns:

  • (Boolean)


96
97
98
# File 'lib/transactional_capybara/ajax_helpers.rb', line 96

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

#wait_for_ajaxObject



88
89
90
# File 'lib/transactional_capybara/ajax_helpers.rb', line 88

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