Module: PageObject::Javascript::AngularJS

Defined in:
lib/page-object/javascript/angularjs.rb

Class Method Summary collapse

Class Method Details

.pending_requestsObject

return the number of pending ajax requests


8
9
10
# File 'lib/page-object/javascript/angularjs.rb', line 8

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