Selenium Remote Control( Selenium 1.0 )
Selenium Remote Control
Selenium RC stands for Selenium Remote Control. It is the first Selenium Project and is also known as Selenium 1.0. Selenium Remote Control (Selenium RC) is an older component of the Selenium testing suite that allowed testers to write automated web application UI tests in various programming languages.
Selenium RC Server allows users to write application tests in multiple programming languages like Java, C#, Python, Ruby, PHP, and Perl. It was developed to overcome the limitations of Selenium Core, which could not interact with web pages outside the domain due to same-origin policy restrictions in the browser.
Selenium RC Architecture
Selenium RC client libraries communicate with the Selenium RC Server. The server forwards the Selenese commands to a browser extension component called Selenium Core. The Selenium Core executes the Selenium command using a JS( JavaScript) interpreter.
-
Selenium RC consists of two main parts:
-
Selenium RC Server – Acts as a proxy between the browser and the web application.
-
Client Libraries – Libraries available for different programming languages that allow testers to write scripts.
-
-
The server injects JavaScript code (called Selenium Core) into the browser to control it.
-
The test scripts communicate with the RC Server using HTTP, and the server controls the browser.
The Selenium RC server handles the different browsers. It is capable of launching and killing browser instances. The server acts as a proxy between the browser and the application.
Start Selenium RC server
We have to start the RC server before running the scripts. Java is a prerequisite and should be installed on the machine to run the RC server.
Download the RC server. Open the command prompt and run the server. The sample command to start the RC Server is shown below:
\> java -jar <selenium-rc-server.jar
For example, we have to Instantiate the RC server in the Test automation script:
Selenium selenium = new DefaultSelenium( "localhost" , 4444,
"*firefox" , "http://www.testingdocs.com/" );
selenium.start();
Language Support
Selenium RC had library support for many programming languages, like
- Java
- PHP
- Python
- Ruby etc.
Important Note
Selenium RC is now deprecated.
Selenium RC is deprecated and no longer actively maintained. It has been replaced by Selenium WebDriver, which provides faster, more direct access to browser internals without requiring a server.