量角器与硒有什么优势或劣势? [英] Any advantage or Disadvantage Protractor Vs Selenium?

查看:28
本文介绍了量角器与硒有什么优势或劣势?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在开发具有大量 Angular js 的 WebApp……我们从 Selenium WebDriver 开始,脚本可以很好地从头开始代码……但我建议我们需要使用量角器而不是 Selenium WebDriver.就两者为我做同样的工作而言.我发现的唯一区别是我不想明确等待加载网页..

I am currently working on the WebApp which has Lot of Angular js... We started with Selenium WebDriver and the scripts works well scratch codes... But I am suggested that we need to use protractor instead of Selenium WebDriver. As far as both do the same job for me. The ONLY difference I found is that I don't want to wait explicitly to load the webpage..

Protractor Vs Selenium WebDriver 还有其他优点或缺点吗?

Is there any other advantage or disadvantage in Protractor Vs Selenium WebDriver?

推荐答案

您好,我们可以讨论一下,但就 selenium v​​s protractor 而言:

Hi we can have a discussion over it but as far as selenium vs protractor goes:

  1. 即使是 Angular JS 网站也能很好地工作,只是我们必须处理同步问题.如果你能应付那么没有劣势.
  2. Selenium 具有非常丰富的自动化功能,也就是说,它已投放市场多年,并且发展非常迅速,其 API 几乎稳定.
  3. 它实际上是开源市场中用于浏览器自动化的事实上的工具.
  4. 您可以使用几乎所有流行语言的 selenium.

量角器

  1. 作为基于角度的自动化工具进行销售.但是当您查看它的核心时,它是 webdriver JS 的包装器.因此,它没有发现浏览器自动化的任何新垂直领域.
  2. 是的,它在特定角度定位器策略的情况下具有一定的优势.它提供了更多使用 Angular 指令的选项(即特定角度的定位器策略).
  3. 它仅适用于一种客户端(语言),即仅适用于 JavaScript.因此,要使用它,您必须了解 JavaScript.
  4. 市场上的新产品,虽然它基于 webdriverJs.

因此,这完全取决于您的项目要求和您想要使用哪种工具的团队知识.说哪个比其他有什么优势是不好的.这两种工具都可以帮助我们并使浏览器自动化完美无缺.希望这会有所帮助.

So it totally depends upon your project requirement and team knowledge which tool you want to use. It will not be good to say which has what advantage over other. Both tools are here to help us and make browser automation flawless. Hope this helps.

这篇关于量角器与硒有什么优势或劣势?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆