角对象无法识别-Protractor网 [英] Angular objects not recognized -Protractor-net
本文介绍了角对象无法识别-Protractor网的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
脚本上量角器网.... NgWebDriver.cs文件此步骤失败
大概指令一步获得('$浏览器')notifyWhenNoOutstandingRequests(回调) - 什么用$浏览器或notifyWhenNoOutstandingRequests任何想法
this.jsExecutor.ExecuteAsyncScript(ClientSideScripts.WaitForAngular,this.rootElement)
angular.element(EL).injector()得到('$浏览器')notifyWhenNoOutstandingRequests(回调)。
解决方案
包括angDriver.IgnoreSynchronization =真实的陈述解决了我。也许因为我的应用程序一直是数据查询提出要求永远不会结束。
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?
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. Probably since my application is continuously polling for data so Requests never ends.
这篇关于角对象无法识别-Protractor网的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文