luc*_*ssp 6 angularjs jquery-animate protractor
我在AngularJS应用中的一些代码,显示/隐藏动画使用像一些div: $(el).fadeOut().
如何使用量角器进行测试时禁用动画:http://api.jquery.com/jQuery.fx.off?我可以直接从量角器以某种方式在浏览器中运行那小块代码吗?
找到了:
var ptor = protractor.getInstance();
ptor.get("http://localhost:9000/");
ptor.driver.executeScript("$.fx.off = true;");
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
1270 次 |
| 最近记录: |