【问题标题】:Disable animations when testing AngularJS app with protractor使用量角器测试 AngularJS 应用程序时禁用动画
【发布时间】:2013-09-22 01:27:24
【问题描述】:

我的 AngularJS 应用程序中有一些代码使用如下动画显示/隐藏一些 div:$(el).fadeOut()

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

【问题讨论】:

    标签: angularjs jquery-animate protractor


    【解决方案1】:

    找到了:

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

    【讨论】:

    猜你喜欢
    • 2015-10-17
    • 1970-01-01
    • 2015-03-29
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-10-09
    • 1970-01-01
    • 2019-07-05
    相关资源
    最近更新 更多