Module: EDSL::PageObject::Javascript::AngularJS

Defined in:
lib/edsl/page_object/javascript/angularjs.rb

Class Method Summary collapse

Class Method Details

.pending_requestsObject

return the number of pending ajax requests



9
10
11
# File 'lib/edsl/page_object/javascript/angularjs.rb', line 9

def self.pending_requests
  'return angular.element(document.body).injector().get(\'$http\').pendingRequests.length;'
end