【问题标题】:What is the benefit of using protractor for applications non angular?在非角度应用中使用量角器有什么好处?
【发布时间】:2015-09-06 01:19:50
【问题描述】:

我目前正在实施自动化测试,想知道使用量角器自动化非角度应用程序有什么好处。

与只使用webdriverJS相比有什么优势?

【问题讨论】:

    标签: javascript selenium protractor angularjs-e2e e2e-testing


    【解决方案1】:

    protractorWebDriverJS javascript selenium 绑定上提供convenient and well-designed API 和抽象层。它由 Google 开发人员积极开发和维护。

    除了browser, by, element, element.all, $ and $$ global syntactic sugar 和多个唯一定位器以及添加自定义定位器的简单方法外,还有一组内置Expected Conditionsbrowser.wait() 一起使用,有助于与非角度应用程序同步。

    另外,不要忘记configure your protractor tests 的便捷方式。

    此外,还有几个内置的plugins 扩展了量角器的内置功能。目前已经实现了 Accessibility、Timeline、ngHint 和 Console 插件。


    换句话说,使用protractor,您将获得纯原版 webdriver 提供的一切以及更多其他功能。


    另见:

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2011-04-10
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-10-09
      相关资源
      最近更新 更多