开发者

what is major difference between selenium1 and selenium2 [closed]

As it currently stands, this 开发者_如何学Pythonquestion is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 10 years ago.

what is major difference between selenium1 and selenium2


Selenium 1 = Selenium Remote Control. Selenium 2 = Selenium Webdriver, which combines elements of Selenium 1 and Webdriver.

The big downside of Selenium RC was that it was written in JavaScript, so depended on the browser's JavaScript engine as to how it would run. This made tests buggy.

Selenium 2 integrated Google's Webdriver project. It's an interface that runs the JavaScript natively, so you only need to write the test once and Selenium will test on different browsers.

Therefore, Selenium 1 works with just about every browser - if it has a JavaScript engine, it will probably work. However, Selenium 2 needs a driver for that browser. Although there are drivers for all the biggest browsers, for testing the maximum range of browser / OS combinations, it is better to use Selenium 1. If you are just testing the most common browsers, Selenium 2 is more accurate.


There is a lot of members in the "Selenium" family. Those generally called "selenium 1" and "selenium 2" are Selenium RC and Selenium Server, respectively.

Both are server programs meant to remote control a browser so you can call it from elsewhere. They work the same way, the main difference in "selenium 2" is the integration of the WebDriver API.

More details here : http://seleniumhq.org/docs/03_webdriver.html

Also, please do some research. Google already knew the answer to this question. :)


You can get more information from the WebDriver page and their FAQ at http://code.google.com/p/selenium/wiki/FrequentlyAskedQuestions#Q:_So,_is_it_like_?Or?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜