简体   繁体   English

无法识别角度对象-量角器网

[英]Angular objects not recognized -Protractor-net

Script fails on this step on protractor-net ....NgWebDriver.cs file probably on command step get('$browser') notifyWhenNoOutstandingRequests(callback) - Any idea on what $browser or notifyWhenNoOutstandingRequests used for? 量角器网.... NgWebDriver.cs文件的脚本可能在命令步骤get('$ browser')notifyWhenNoOutstandingRequests(callback)上失败–关于$ browser或notifyWhenNoOutstandingRequests用于什么的任何想法?

this.jsExecutor.ExecuteAsyncScript(ClientSideScripts.WaitForAngular, this.rootElement)
angular.element(el).injector().get('$browser').notifyWhenNoOutstandingRequests(callback);

Including the angDriver.IgnoreSynchronization=true statement solved it for me. 包括angDriver.IgnoreSynchronization = true语句为我解决了它。 Probably since my application is continuously polling for data so Requests never ends. 可能是因为我的应用程序一直在轮询数据,所以请求永远不会结束。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM