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

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

问题描述

您好我想硒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.

如果任何人都可以发送/那会真的appriciate差异帖子的链接。

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

在此先感谢

推荐答案

的差别是相当大。

硒RC只能使用JavaScript为它的每一个命令。这意味着,你写的一切最终被翻译成Javascript和在浏览器中运行。这种方法有几个优点和缺点 - 它应该工作在每一个浏览器同样的方式,但仅限于同根同源政策和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#如何硒-RC-作品

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.

<一个href=\"http://seleniumhq.org/docs/03_webdriver.html#how-does-webdriver-drive-the-browser-compared-to-selenium-rc\" rel=\"nofollow\">http://seleniumhq.org/docs/03_webdriver.html#how-does-webdriver-drive-the-browser-compared-to-selenium-rc

请注意,虽然硒区局一直oficially德precated的的webdriver目前正在迅速发展,它仍然从几个儿童患有的疾病,而不是在它的全部实力。这就是说,使用webdriver的,你可以做任何事情,硒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.

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

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