Selenium Remote Control

Selenium RC notes :-
RC stands for Remote Controle and Selenium 1.

Selenium RC is a server that allows user to create test scripts in a desired programming languages .

It allows executing test sripts within the large spectrum of browsers(all browser like Firefox, IE, Chrome, Safri, Opera etc.)

It is server and it lanches all the browsers but one browser at a time.

It acts as Application Programing Interface(API) and Library.

Required to start server before excuting the tscript.

It istandalone java program which alow you to run Html tesuites.

It is easy and small API & API’s are ls Object orientd.

 

Disadvantages of RC :-

Here every time you can start Selenium RC server you can run the script first you will start RC Proxy server.
For example you can edit one line or one letter after that you can compulsary before run the execution you must start on RC proxy server. It is littile bit difficult.

It doesn’t suports of moving mouse cursors.

It does not suportot test iphone/Android aplications.

It doesn’t suports Record and playback.

Some time port number doesnot work, that time you can change port number . It is very deficult change the port number .(Change port number path is: Run--> External Tools -->External tool configuration --> add the “Argument” as -->{ -jar selenium-server-standalone-2.44.0.jar -port 1234  } ) 

RC Commands :-

      public DefaultSelenium selenium=new DefaultSelenium("localhost",5826,"*firefox","http://techlearn.in");

 

        selenium.start();   //----->

 

       selenium.open("http://techlearn.in");   //----->

 

       selenium.windowMaximize();   //----->

 

       selenium.type("Name", "chinna");   //----->

 

        selenium.click("Enter");   //----->

 

        selenium.waitForPageToLoad("9000");    //-----> //9secs 

 

        selenium.setTimeout("100000");   //----->

 

         Thread.sleep(2000);   //----->

 

        selenium.windowFocus();   //----->

 

        selenium.select("day", "21");  //-----> select dropdown

 Sample Example on Selenium RC :-