【发布时间】:2018-11-03 00:02:33
【问题描述】:
我正在尝试针对我自己的 AngularJS 代码运行 this tutorial。我无法通过第一次测试。任何从我的页面中提取任何信息的尝试都会出现此错误:
Error: Error while waiting for Protractor to sync with the page: "[ng:test] no injector found for element argument to getTestability\nhttp://errors.angularjs.org/1.3.8/ng/test"
Stacktrace:
Error: Error while waiting for Protractor to sync with the page: "[ng:test] no injector found for element argument to getTestability\nhttp://errors.angularjs.org/1.3.8/ng/test"
at Error (<anonymous>)
==== async task ====
Protractor.waitForAngular()
==== async task ====
Asynchronous test function: it()
有没有人提供 Protractor 教程,向您展示如何定位自己的代码,而不是其他人的代码?
提前谢谢你
【问题讨论】:
-
它是否对测试中使用的 URL (juliemr.github.io/protractor-demo) 起作用?
-
是的,是的,网页显示,并且有标题
标签: angularjs jasmine protractor