Selenium Components

Selenium Components:

  1. IDE
  2. RC (Remode Control)
  3. Web Driver
  4. Grid

History of selenium:

  1. IDE and RC was developed by jason Huggins at thoughtworks in 2004
  2. The challenges faced in the RC was overcome in Web Driver in 2006 by Lead Engineer in Google named Simon Stewart

IDE:

  1. Add-on in firefox
  2. Good tool for record and playback

RC:

  1. Support multiple languages
  2. SUpport multiple browsers
  3. Support multiple OS
  4. Selenium core is dependent on JavaScript

How selenium RC Works:

  1. It’s basically used for web based testing
  2. In order to locate element in webpage selenium RC Injects javascript on to the browser
  3. To support JAvascript we need to start selenium Remote control server on the machine

Limitations:

  1. Javascript makes execution slower
  2. It’s not supported by many browsers (Ex: IE)

WebDriver:

  • It’s the latest component for selenium
  • All the development is happening in webdriver

Features of webdriver:

  1. Multiple Browsers,  Lang & OS

Cool Features:

  1. No Javascript injection and No requirement of server
  2. Object injection in BULK
  3. Iphone/Android drivers
  4. Event listeners & More

How webdriver works:

  1. Webdriver directly interacts with the native browser code
  2. For every browser there is separate class implemented
  3. Web driver comes with a huge set of APIs

Selenium Grid:

Selenium-Grid allows you run your tests on different machines against different browsers in parallel. That is, running multiple tests at the same time against different machines running different browsers and operating systems. Essentially, Selenium-Grid support distributed test execution. It allows for running your tests in a distributed test execution environment.

 

Leave a Reply

Your email address will not be published. Required fields are marked *