Selenium RC 架构和 Selenium WebDriver 架构的区别 [英] Selenium RC architecture and Selenium WebDriver architecture differences

查看:29
本文介绍了Selenium RC 架构和 Selenium WebDriver 架构的区别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想要 selenium RC 和 webDriver 架构之间的差异.我阅读了很多功能差异,但没有发现任何架构差异.

Hi I want differences between architectures of selenium RC and webDriver. I read lot of functional differences but did not find anything for architecture differences.

如果任何人都可以发送/发布差异的链接,这将非常有用.

If anyone can send/post links of differences that will really appriciate.

提前致谢

推荐答案

差异相当大.

Selenium RC 的每个命令都只使用 JavaScript.这意味着您编写的所有内容最终都会转换为 Javascript 并在浏览器中运行.这种方法有几个优点和缺点 - 它应该在每个浏览器中以相同的方式工作,但仅限于 "same origin政策" 和 JavaScript 限制.

Selenium RC works only using JavaScript for its every command. That means that everything you write is eventually translated into Javascript and run in the browser. This approach has several pros and cons - it should work the same way in every browser, but is limited to "same origin policy" and to JavaScript limitations.

http://seleniumhq.org/docs/05_selenium_rc.html#how-selenium-rc-works

WebDriver 实际上使用每个浏览器自己的和本机 API 来处理它们.这意味着它有时需要浏览器开发团队的直接帮助,有时在新浏览器版本发布时失败,有时在不同浏览器上的行为略有不同(但嘿,在 IE 上,js 也不是最可靠的东西),但是整体上更强大的工具.它应该更快,它应该允许更复杂的工作而没有任何 js 限制.

WebDriver actually uses each browser's own and native API's to work with them. That means that it sometimes needs direct help from browser development team, sometimes fails on a new browser version release, sometimes behaves slightly differently on different browsers (but hey, on IE, js was also not the most reliable thing), but is a much stronger tool overall. It should be faster, it should allow for much more complex work without any js limitations.

http://seleniumhq.org/docs/03_webdriver.html#how-does-webdriver-drive-the-browser-compared-to-selenium-rc

请注意,虽然 Selenium RC 已被正式弃用,但 WebDriver 现在正在快速开发中,但它仍然受到一些儿童疾病的困扰,并没有发挥其全部功能.也就是说,使用 WebDriver,您可以做任何 Selenium RC 可以做的事情.有时更多.偶尔有一个小错误.

Note that while Selenium RC has been oficially deprecated, the WebDriver is now being developed rapidly and it still suffers from several child-illnesses and is not in its full strength. That said, using WebDriver, you can do anything Selenium RC can do. And sometimes more. With an occasional minor bug.

这篇关于Selenium RC 架构和 Selenium WebDriver 架构的区别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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