用于jQuery.active的AngularJs吊坠

时间:2014-08-14 08:31:25

标签: angularjs selenium angularjs-http

在为角度应用程序编写硒测试时,我遇到时间问题。在下一步执行之前,需要完成待处理的$http个请求。

如果我使用 jQuery I could do the following to check if there are any pending requests

jQuery.active

AngularJS 是否存在类似的东西?

1 个答案:

答案 0 :(得分:0)

等价于$ http.pendingRequests 请查看Angualr JS文档:https://docs.angularjs.org/api/ng/service/ $ http)