Sha256: efa78cec1e919ebb58ba9e97f9654176c68607ea4bc5d0d23e5d8941b58506eb

Contents?: true

Size: 286 Bytes

Versions: 19

Compression:

Stored size: 286 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

19 entries across 19 versions & 2 rubygems

Version Path
page-object-2.2.6 lib/page-object/javascript/angularjs.rb
page-object-2.2.5 lib/page-object/javascript/angularjs.rb
page-object-2.2.4 lib/page-object/javascript/angularjs.rb
page-object-2.2.3 lib/page-object/javascript/angularjs.rb
page-object-2.2.2 lib/page-object/javascript/angularjs.rb
page-object-2.2.1 lib/page-object/javascript/angularjs.rb
page-object-2.2 lib/page-object/javascript/angularjs.rb
page-object-2.1.1 lib/page-object/javascript/angularjs.rb
page-object-2.1 lib/page-object/javascript/angularjs.rb
page-object-2.0.0 lib/page-object/javascript/angularjs.rb
page-object-1.2.2 lib/page-object/javascript/angularjs.rb
page-object-1.2.1 lib/page-object/javascript/angularjs.rb
page-object-1.2.0 lib/page-object/javascript/angularjs.rb
page-object-1.1.1 lib/page-object/javascript/angularjs.rb
page_object-1.1.3 lib/page-object/javascript/angularjs.rb
page_object-1.1.2 lib/page-object/javascript/angularjs.rb
page_object-1.1.1 lib/page-object/javascript/angularjs.rb
page-object-1.1.0 lib/page-object/javascript/angularjs.rb
page-object-1.0.3 lib/page-object/javascript/angularjs.rb