Skip to Content

Table of Contents

Pre-requisites

JAVA Installation and Setup

Mozilla Firefox installation

Selenium IDE

Selenium Add in Installation

Selenium Server installation

Example 

 

Pre-requisites – Java, Mozilla Firefox

Once Java is installed, under Environment variables set the following:

JAVA_HOME

C:\Program Files\Java\jdk1.7.0_51

JRE_HOME

C:\Program Files\Java\jdk1.7.0_51\jre

PATH

%JAVA_HOME%\bin;C:\Program Files\Java\jdk1.7.0_51;

In order to ensure Java is installed successfully and the env variables are set, the java command should be successfully executed from any location (as shown below)

Download Firefox — Free Web Browser — Mozilla

Download Mozilla Firefox and install

 

 

This document talks about Selenium IDE

Selenium IDE is a Firefox plugin which records and plays back user interactions with the browser. Use this to either create simple scripts or assist in exploratory testing. It can also export Remote Control or WebDriver scripts, though they tend to be somewhat brittle and should be overhauled into some sort of Page Object-y structure for any kind of resiliency.

Selenium IDE is not only a recording tool: it is a complete IDE. You can choose to use its recording capability, or you may edit your scripts by hand. With autocomplete support and the ability to move commands around quickly, Selenium IDE is the ideal environment for creating Selenium tests no matter what style of tests you prefer.

Features:

  • Easy record and playback
  • Intelligent field selection will use IDs, names, or XPath as needed
  • Autocomplete for all common Selenium commands
  • Walk through tests
  • Debug and set breakpoints
  • Save tests as HTML, Ruby scripts, or any other format
  • Support for Selenium user-extensions.js file
  • Option to automatically assert the title of every page
  • NEW! Easy customization through plugins

In this document I have used version 2.8.0

Download latest released version 2.8.0 released on 29/Sep/2014

 

 

Setting up Selenium Server

http://www.seleniumhq.org/download/

 

 

 

 

 

How to launch selenium server

Navigate the folder where you have copied the downloaded jar file

Run this command to start the server

java -jar selenium-server-standalone-2.44.0.jar

To stop the server you type CTRL+C in cmd prompt

By default the recording will be enabled

Example shown below shows a sample script

 

Note – In order to playback please make sure you have the server running or you’ll get this exception

 

Thanks

Dilip Mamidela

SAP ,India , BLR

To report this post you need to login first.

6 Comments

You must be Logged on to comment or reply to a post.

Leave a Reply