Selenium and Java

Friday, 20 March 2015

Selenium - Difference between Selenium 1.0 and Selenium 2.0

Selenium 1.0 also known as Selenium RC and Selenium 2.0 known as Seleniuim WebDriver.
Differences as below...

Selenium 1.0 (RC) Selenium 2.0 (WebDriver)
Need to start Remote server before execution.No need to start any server.
Support some of the browser like.. IE, FireFox, Chrome and Opera. Can not support headless HTMLunit driverSupport all the browser like.. IE, FireFox, Chrome ,Opera, headless HTMLunit, Android
Core engine is Javascript basedInteracts natively with browser application
Very complex architectureSimple and easy architecture
It calls Selenium Core to execute and control browserDirectly interact with browser
API are more matured but contain redundancy and often confusingAPI's are simple and no redundancey.
Built in test result generator and automatically generate HTML fileNo Built in result file generator
It ‘injected’ javascript functions into the browser when the browser was loaded and then used its javascript to drive the AUT within the browserSelenium-WebDriver makes direct calls to the browser using each browser’s native support for automation

1 comment:

  1. Actually Selenium 1.0 consists 2 components.
    1. Selenium Core i.e. Set of pure JavaScript commands
    2. Selenium RC which includes Selenium Server and Selenium Client Lib, In order to execute the JavaScript commands on the web page i.e. Selenium Core commands, the actual Selenium-core JavaScripts should be loaded on the page in which AUT is loading. Also we should make the browser feel as the commands also loading from the same domain from which AUT also loading.
    Selenium Training Institute in Chennai

    ReplyDelete