×

Difference between Selenium WebDriver and Selenium RC

Difference between Selenium WebDriver, and Selenium RC:

Selenium WebDriver and selenium RC (Remote Control) both are different in any manners which we see later in this tutorial, let us see the main difference which is in the architecture of WebDriver and Selenium RC.

Architecture:

The Architecture of the selenium WebDriver is simple as compared to selenium RC.

WebDriver can directly communicate with the browser without the server.

The requirement to run the test script in the selenium WebDriver is as follows,

  • An Eclipse IDE with any supported programming language like Java, C#, and Python, etc.
  • A browser to perform all the actions written in the test script.

Whereas, the selenium RC architecture is a bit complex with the browser because Selenium RC cannot interact with the browser without the selenium server.

Before running the test scripts in Selenium RC, the RC server is installed initially to create a connection between our selenium commands and our browser.

The basic requirement to run the test script in the selenium RC is as follows,

Difference between Selenium Web driver and Selenium RC 1
  • The selenium server includes a JavaScript program, which is known as Selenium Core in the browser.
  • And then, selenium core will start receiving the action or the selenium commands from the RC server.
  • After receiving all the selenium commands, selenium core will execute them as JavaScript commands.
  • The JavaScript command act as instructions to the browser.
  • Then the browser will execute all the instructions provided by the selenium core and return the overall summary to the server.
  • This overall summary is the final result, which is displayed on the user screen.

Now, we will discuss some significant difference between webdriver and selenium RC which are as follows,

Features WebDriver Selenium RC
Browser supports Selenium webdriver supports multiple browsers like Internet Explorer, Firefox, Google Chrome, Safari, and Microsoft Edge. And It also supports a headless HTMLUnit browser, where "headless" means that it is GUI-less. HTMLUnit is an invisible browser that allows faster execution of tests script because it does not waste time to wait for loading the web page elements. Selenium RC supports various browsers like IE, Firefox, and chrome and it doesn't support the headless HTMLUnit browser because it needs a real browser to work with.  
Os support Selenium webdriver supports Windows, Linux, macOS, Android, and iOS. Selenium RC supports Windows, Linux, and macOS operating systems.
Languages support Selenium webdriver supports multiple programming languages like Java, C#, Python, Perl, and Php. Selenium RC supports Java, Ruby, C#, and Python programming languages.
Library Selenium webdriver is a collection of core java libraries. Selenium RC is the collection of JavaScript libraries.
Server support In the selenium webdriver, there is no need for the Selenium server. In the selenium RC, we cannot run the test script without the Selenium server.
Secure  application support WebDriver supports a secure application. Selenium RC did not support a secure application because of the same-origin policy, which means that when JavaScript is available in domain1 cannot execute the html page because the Html page came from another domain, which is domain2.  
speed Selenium webdriver is faster than Selenium RC because it interacts directly with the browser without using any external server. Selenium RC uses the intermediate RC server to communicate with the browser.
Testing mobile application WebDriver supports a mobile application like iOS, Android, and window mobile. Selenium RC does not support any mobile application testing.
Object-oriented Selenium webdriver is an object-oriented API. Selenium RC is less object-oriented API.
API supports It has a bit complex and large API as compared to RC, and it has an actual core API, which has binding in a range of languages. Selenium RC has easy and small API, and it has a standalone java program, which allows us to run Html test suites.  
Moving mouse Selenium webdriver supports moving mouse cursors. Selenium RC does not support moving mouse cursors feature.
XPath In the selenium webdriver, there is no need to append the full XPath with ‘XPath=\’ syntax. In the selenium RC, we need to append full XPath with ‘XPath=\’ syntax.

 

 


Related Topics

WebDriver-Partial Link Text locator

WebDriver-Partial Link Text locator In selenium WebDriver, there is an additional way to find a web link element with the help of partial link text locator. The partial link text is used...

4 minutes read.

First test case of Selenium-IDE

First Test Case of Selenium-IDE: In this part, we are discussing how to create a basic test case in Selenium-IDE: The entire test script execution process in Selenium -IDE can be divided...

4 minutes read.

Selenium WebDriver-CSS Selector locator

Selenium WebDriver-CSS Selector locator A CSS selector is used to identify the web element based on their “# id” and “. Class”, Html tags, and attributes. A CSS stands for Cascading Style...

1 minute read.

Selenium WebDriver- Radio button handling

Selenium WebDriver- Radio button handling In this tutorial, we will be learning about handling the radio button in selenium WebDriver. Let us take one example to give you a better understanding of...

3 minutes read.

Selenium WebDriver-CSS Selector: Tag and ID

Selenium WebDriver-CSS Selector: Tag and ID We will locate the web element with the help of tag and id CSS selector in this section of the tutorials Where Tag and id are...

4 minutes read.

Name Locator in Selenium IDE

NAME LOCATOR: It is used to find the name in the web element. If we have multiple web elements of the same name, then the first matched element would be returned. Open the...

3 minutes read.

Selenium-IDE Login test

Login test for Selenium-IDE Now we are learning, how to create a Login/sign-up Test case in Selenium IDE. For our testing purpose, we are going to test the login page provided by...

2 minutes read.

Selenium WebDriver-Alert Popup

Selenium WebDriver-Alert Popup  An alert popup is one of the small message boxes, which used to give some information to the user that displays on the browser. The Alert popup will be...

6 minutes read.

WebDriver-Id Locator

WebDriver-Id Locator: The Id Locator is used to identify any web element in UI with the help of the ID attribute. The First preference is always goes to ID locator while inspecting...

4 minutes read.

Selenium WebDriver - Browser Controls Commands

Selenium WebDriver - Browser Controls Commands WebDriver includes operations like opening a browser, fetch the title, and closing the browser, etc. Some of the most commonly used Browser controls commands for Selenium WebDriver...

6 minutes read.

Id Locator in Selenium IDE

Id Locator Id locator is used to find the web element by the help of id of that element because ID is likely to be unique for each web element. Target Format: Id=id of the...

2 minutes read.

CSS Selector: ID in Selenium IDE

CSS Selector: ID The id attribute is used to identify the web element uniquely in the web pages. Syntax of ID Attribute:  [HTML tag][#][Value of ID attribute] The hash sign (#): it is mandatory while using the...

1 minute read.

Selenium Wait

In this tutorial, we will understand how we can avoid synchronization issues while executing the test script in a selenium WebDriver. Before going further in this tutorial, first, we will understand that...

10 minutes read.

WebDriver Interface | Class Diagram

WebDriver interface/class diagram: The interface of WebDriver includes the following stages, which is as follows: Search Context Web driver Remote web driver Driver class Search Context  The first interface of the web driver class is search Context,...

2 minutes read.

Selenium-IDE Locators

Selenium-IDE Locators: Before we start learning about Selenium –IDE Locators, firstly we have to learn about UI elements. UI Elements -UI elements are the elements which are displayed on the web application....

1 minute read.

Selenium WebDriver - Google Chrome Browser

Selenium WebDriver - Google Chrome Browser In this tutorial, we will learn how to run our Selenium Test Scripts in the Google Chrome Browser. To implement the WebDriver protocol with the help...

3 minutes read.

Selenium WebDriver Characteristics

Characteristics of Selenium WebDriver Some of the essential characteristics of Selenium WebDriver are as follows: Multiple Operating System Support Selenium Webdriver supports multiple operating systems like: Desktop OS: Window, Linux, and macOS Mobile OS:...

2 minutes read.

WebDriver-Tag Name Locator

Selenium WebDriver-Tag Name Locator The tag name locator is used along with the findElements() method to identify multiple similar elements in the UI. It is used to locate the web element with...

3 minutes read.

WebDriver-Link Text locator

WebDriver-Link Text locator The Link text locator is used to identify only web link elements based on the value of the link. The Link text locators cannot be used for other than...

4 minutes read.

Link Text Locator in Selenium IDE

LINK TEXT Link textlocator is used to identify only the weblink element based on the name of the link. Whenever multiple links are there, it will not work; it will work only...

1 minute read.