Sha256: 8bad7064f2eb87c00c786b672b97f0654814c5eb48c3ef1dc00acaf46a9be02a

Contents?: true

Size: 300 Bytes

Versions: 8

Compression:

Stored size: 300 Bytes

Contents

module PageObject
  module Javascript

    module AngularJS
      #
      # return the number of pending ajax requests
      #
      def self.pending_requests
        'return angular.element(document.body).injector().get(\'$http\').pendingRequests.length;'
      end
    end

  end
end

Version data entries

8 entries across 8 versions & 3 rubygems

Version Path
centric_page_object-2.3.1 lib/page-object/javascript/angularjs.rb
page-object-2.3.1 lib/page-object/javascript/angularjs.rb
page-object-2.3.0 lib/page-object/javascript/angularjs.rb
page-object-lds-0.0.14 lib/page-object/javascript/angularjs.rb
page-object-lds-0.0.13 lib/page-object/javascript/angularjs.rb
page-object-lds-0.0.12 lib/page-object/javascript/angularjs.rb
page-object-lds-0.0.11 lib/page-object/javascript/angularjs.rb
page-object-lds-0.0.1 lib/page-object/javascript/angularjs.rb