Configuring Selenium RC and Basics
Configuring Selenium RC and Basics
Selenium Remote Control (RC) is a test tool that allows you to write
automated web application UI tests in any programming language against any
HTTP website using any mainstream JavaScript-enabled browser.
If you get a version number (which needs to be 1.5 or later), you’re ready to start
using Selenium-RC. If not please follow steps below.
Installing Java on system
If java –version does not give you any version then there are two things that
could have happened.
Java is not installed on your system or the environment variables path is not set
right.
2) Install jdk
3) Restart the system and try typing java –version again and this might work
V. In the Edit windows, modify PATH by adding the location of the class to
the value for PATH.
VI. If you do not have the item PATH, you may select to add a new variable
and add PATH as the name and the location of the class as the value. For
example, if you have installed jdk in C drive then path may be in the form
C:\Program Files\Java\jdk1.6.0_12\bin
VII. You will have to give your own path in which you have installed jdk.
VIII. Open Command prompt window, and run your java code.
This will start selenium RC. If you want to end it you can use control-c or close
the command prompt.
If you find any problems you can open task manager and kill javaw process.
Selenium RC normally will not work with https unless using some extra
configuration. To use a self-signed
Certificate since selenium loads the profile every time it will be difficult. So in
that case please follow the below steps.
2. Start Firefox (the one you're going to run your tests with) with the profile
manager: firefox -ProfileManager
If system is giving error saying Firefox path is not found. Check if firefox browser
is installed or not. If installed then please proceed with below steps. If firefox is
not installed then please download from Mozilla website.
2) Click on properties. This will open a new window and on left hand
navigation you can see Advanced system settings