DOWNLOAD AND INSTALL SOFTWARES

HOW TO DOWNLOAD,INSTALL AND RUN SELENIUM-RC

STEP ONE
  • Go to seleniumhq.org/download/
  • click on Selenium-RC to download 
  • Go to the downloaded file and unzip it 
  • now i have a folder with the Selenium files in it.
Overview of the files unzipped from the downloaded file
You can see lot of folders extracted 
There are two main folder types here
  • Specific language client drivers
  • Selenium server
Each of the supported languages has a client driver. You can see from the list of folders that the Selenium distribution supports
  • Microsoft.net
  • Java
  • Perl
  • PHP
  • Python
  • Ruby
The client drivers are what we use in our tests to communicate with Selenium-RC. We use the client drivers because our tests act as clients, which communicate with the server, in order to execute commands through the browser.

The client drivers contain the source code, tests, documentation and libraries that we need to work with the selenium tests.

The selenium server directory has the documentation , source  code, tests and executables for working with Selenium server.

STEP TWO
If your operating system is windows Xp , it is better to download and install Microsoft Powertoy it is very helpful tool. In vista this functionality is built in and you can browse to the folder in Windows Explorer and hold the shift key and right-click on the folder and choose " Open Command Window Here"

Note:-
If you don't have this tool installed then you need to get a command window open.
Type "cd c:\selenium-remote-control-control-1.0.3\selenium-server-1.0.3"

So I right click on the "Selenium-server-1.0.3" folder and choose " Open Command Window Here"
from the context menu.

Note:-
I also give the command window a new title so I can find it easily by issuing the command "Title SELENIUM SERVER".

This makes it much easier to find when I Alt-Tab or look for it on the taskbar.
Now we run the selenium server by typing the command " java-jar selenium-server .jar"

before this we need to install java
if already installed
done- you have just installed and started the Selenium-RC server.

STEP THREE

From the command line
Since you have started the Selenium server in a dos window you can simply use "ctrl +c" to stop it

From a browser url
Since selenium server operates a web server under Jetty it can receive commands via http through browsers:


  • http://localhist:4444/selenium-server/driver/?cmd=shutDownSeleniumServer
If , for some reason you wanted to leave the server running and just close down the current Selenium session, you could issue the following command in a browser
  • http://localhist:4444/selenium-server/driver/?cmd=shutDown



No comments:

Post a Comment