用量角器测试AngularJS应用程序时禁用动画用量、应用程序、测试、动画

由网友(眼眶却抵抗)分享简介:我有一些code在我AngularJS应用程序,它显示/隐藏动画,使用像一些div: $(EL).fadeOut() I have some code in my AngularJS app which displays/hides some divs using animations like: $(el).fad...

我有一些code在我AngularJS应用程序,它显示/隐藏动画,使用像一些div: $(EL).fadeOut()

I have some code in my AngularJS app which displays/hides some divs using animations like: $(el).fadeOut().

如何可以使用带量角器测试时禁用动画: http://api.jquery.com/jQuery.fx .off 的?我可以以某种方式从量角器直接运行在浏览器中那一小块Øcode?

How can I disable the animations when testing with protractor using: http://api.jquery.com/jQuery.fx.off ? Can I somehow run that small piece o code in the browser directly from protractor?

推荐答案

发现:

var ptor = protractor.getInstance();
ptor.get("http://localhost:9000/");
ptor.driver.executeScript("$.fx.off = true;");
阅读全文

相关推荐

最新文章