×

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

CSS Selector: ID/Class and Attribute in Selenium IDE

CSS SELECTOR: ID/Class and Attribute The Id, class, and attribute of CSS selector are used to identify the web element to access the web pages.  Syntax for Id/Class and Attribute: css= <./#> {[attribute=Value of...

2 minutes read.

Drag and Drop Event Handling

Drag and Drop Event Handling: In this tutorial, we will learn how to handle the drag and drop event in selenium WebDriver using the action class. Before going further in this tutorial...

6 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.

Selenium WebDriver-XPath Locator

Selenium WebDriver-XPath Locator The locators can make the object identification of all the selenium tools. There are eight locators available in selenium web driver, but most of the time we go for...

14 minutes read.

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...

3 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 WebDriver - Firefox or Gecko (Marionette) browser

Selenium web driver-Firefox or Gecko (Marionette) browser In this tutorial, we are going to learn how to run the Selenium WebDriver test script in the Firefox Browser using the Gecko Driver. Before going...

4 minutes read.

Selenium WebDriver-CSS Selector: Tag and Class

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

4 minutes read.

Drawback or Limitations of Selenium

Drawback or Limitations of Selenium Followings are the Drawback or limitations of Selenium:- Drawback /LimitationsDescriptionDesktop applications cannot be automated by Selenium.To test the desktop application, we have tools like Test Complete, Winnium, and...

2 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.

Selenium WebDriver Commands

Selenium WebDriver Commands: As we learn previously in the Selenium-IDE tutorial, Selenium commands are the set of commands that are used to run a Selenium test script. But whereas, Selenium WebDriver had...

2 minutes read.

Selenium WebDriver-Locators

Selenium WebDriver-Locators The WebDriver uses the same set of locating strategies like selenium -IDE for specifying the location of the web element. Each locating strategy has its command in Java to locate...

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.

Selenium WebDriver-CSS Selector: Tag and Attribute

Selenium WebDriver-CSS Selector: Tag and Attribute We will locate the web element with the help of Tag and attribute CSS selector in this section of the tutorial. Where Tag and attribute are...

5 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-IDE Installation in Mozilla Firefox

A beginners guides to Selenium-IDE Installation Since Selenium IDE is designed only for Firefox and Chrome plug-in, we are assuming that you have already installed the Mozilla Firefox browser in your...

1 minute read.

CSS Selector: Inner text in Selenium IDE

CSS Selector: Inner text The inner text is used to identify and create a CSS Selector using a string pattern of the HTML tag which is displayed on the web page. Syntax...

1 minute 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.

Selenium IDE Commands

Selenium –IDE Commands (SELENESE): Selenese commands are the set of commands used in Selenium IDE. Selenese command has two parameters target and value. Selenese command tests the existence of UI elements based on their HTML tags,...

3 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.