带angularjs的量角器超时

带angularjs的量角器超时,angularjs,protractor,Angularjs,Protractor,我目前正在使用量角器和Angularjs进行e2e测试。我在这里使用了测试项目: 不幸的是,量角器失败了4个测试,抱怨Angularjs代码超时 以下是其中一个失败测试的输出: Timed out waiting for asynchronous Angular tasks to finish after 11 seconds. This may be because the current page is not an Angular application. Please see th

我目前正在使用量角器和Angularjs进行e2e测试。我在这里使用了测试项目:

不幸的是,量角器失败了4个测试,抱怨Angularjs代码超时

以下是其中一个失败测试的输出:

Timed out waiting for asynchronous Angular tasks to finish after 11 
seconds. This may be because the current page is not an Angular 
application. 
Please see the FAQ for more details: https://github.com/angular/protractor/blob/master/docs/timeouts.md#waiting-for-angular
While waiting for element with locator - Locator: By(css selector, *[id="searchButton"]). 
The following tasks were pending:
 - $timeout: function (){X(k);k=[]}
以下是pastebin的完整日志:

非常感谢您的帮助。

您可以试试这个

browser.ignoreSynchronization = true;

在打开浏览器之前。要了解更多信息,可以参考此项。

使用allScriptsTimeout将超时时间增加到更大的值。参考错误中的链接…我同意@Grasshopper。您还可以粘贴一些测试代码吗