Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the difference between Selenium IDE, Selenium RC and Selenium WebDriver?

What is the difference between Selenium IDE, Selenium RC and Selenium WebDriver; and in what kind of project can we use each one? Any suggestion will be really appreciated.

like image 408
Zakaria Shahed Avatar asked Mar 08 '23 03:03

Zakaria Shahed


2 Answers

Selenium IDE is a Firefox or Chrome plugin that allows you to record and run the tests which you run using Firefox. You can not perform advanced testing strategies in IDE like looping a single action for several times etc because you cant use any programming language to write the test cases.

Selenium RC and WebDriver allows you to choose a language of your interest to write the test cases. with the help of Selenium RC or WebDriver, you can perform almost any kind of action, which you do manually. The major difference between RC and WebDriver is, RC uses a remote control to convert your tests into browser native code, your tests interact with the Remote control and the remote control interacts with the browser where as WebDriver directly interacts with the browser without any Remote server, so the execution is faster.

I read somewhere that RC converts the test cases which are written in some programming language into Javascript functions ( which can control the browser) where as Web Driver communicates with the browser directly through HTTP commands.

Selenium RC is deprecated and people are using WebDriver instead of RC.

like image 172
Auro Sarma Avatar answered Apr 26 '23 07:04

Auro Sarma


Selenium is an open-source project that can be read in more detail here.

Selenium IDE is a browser plugin (currently for Chrome and Firefox only). It's easy and used if one wants to script out website interactions like quick bug reproductions. Thing is, it creates very fragile tests that break a lot.

Selenium WebDriver is a programmatic package that drives a browser natively. It's meant to help develop automation that interacts with, primarily, with the frontend of websites. Other tools, like Nightwatch.js, use it as core.

There's differences between the two: while Selenium IDE is good for making these exploratory scripts, Selenium WebDriver is a way to make real production ready system tests.

like image 27
Tiago Martins Peres Avatar answered Apr 26 '23 06:04

Tiago Martins Peres