**..\..\node_modules\gulp-angular-protractor\node_modules\gulp-protractor\node_modules\protractor\node_modules\selenium-webdriver\lib\goog\async\nexttick.js:41
goog.global.setTimeout(function() { throw exception; }, 0);
^
Error while waiting for Protractor to sync with the page: "window.angular is undefined. This could be either because this is a non-angular page or because your test involves client-side navigation, which can interfere with Protractor's bootstrapping. See http://git.io/v4gXM for details"**代码中可能出现的错误是什么?
发布于 2017-04-03 06:44:05
原因是加载页面,因为您试图在角页中搜索,结果页也是角页。但是在它们之间的页面,例如:当你点击某个东西会打开另一个页面,在打开之间你会得到一些加载屏幕或加载图标等。这可能是不棱角的。因此,您将遇到同步问题。
通常情况下,我们会在装载机,帧或视频内容的角度页中出现错误。
尝试使用browser.ignoreSynchronization = true;,一旦页面获得了角页,加载了browser.ignoreSynchronization = false;,这样就不会使角页的实际测试用例失败。
https://stackoverflow.com/questions/42902016
复制相似问题