0

I'm having timing issues when writing a selenium test for an angular app. There are pending $http requests that need finished before the next step gets executed.

If I would use jQuery, I could do the following to check if there are any pending requests:

jQuery.active

Does something similar exist for AngularJS?

Community
  • 1
  • 1
mana
  • 6,347
  • 6
  • 50
  • 70

1 Answers1

0

equivalent is $http.pendingRequests please check the Angualr JS documentation : https://docs.angularjs.org/api/ng/service/$http)

Rabi
  • 2,210
  • 17
  • 18