Skip to main content

Selenium Foundation Program - How to configure Selenium-IDE in Firefox

How to install Selenium-IDE?


- Step-1: Firefox installation
                Navigate to: https://www.mozilla.org/en-US/firefox/new/
                Click “Download” button
                Install the downloaded .exe file
                Click finish to launch the Firefox browser

Firefox-setup


- Step-2: Install Selenium-IDE in Firefox browser
                Launch Firefox browser
                Navigate to http://www.seleniumhq.org/download/
selenium-ide-hq-site

                Scroll down until you reach the “Selenium IDE” section (Click on hyperlink)
                Click on the “Allow” button to proceed with the installation.
                Restart the Firefox browser and the Selenium-IDE appears on the favorite bar


Features of Selenium-IDE:

selenium-ide-menubar

Menu Bar
It is located at the top most portion of the Selenium-IDE. The most commonly used menus are the File,Edit, Actions and Options menus.

File menu
It contains options to create, open, save, and close tests.
Tests are saved in HTML format.
The most useful option is "Export" because it allows you to turn your Selenium IDE test cases into file formats that can run on Selenium Remote Control and Web-Driver
"Export Test Case As..." will export only the currently opened test case.
"Export Test Suite As..." will export all the test cases in the currently opened test suite.





Edit Menu
It contains usual options like UndoRedoCutCopyPasteDelete, and Select All.
The two most important options are the "Insert New Command" and "Insert New Comment".


The newly inserted command or comment will be placed on top of the currently selected line.



Ø Commands are colored black.
Ø Comments are colored purple.



Selenium-IDE Vxx.x, test cases can be exported only to the following formats:
- .cs (C# source code)
- .java (Java source code)
- .py (Python source code)
- .rb (Ruby source code)



Options menu
It provides the interface for configuring various settings of Selenium IDE.
We shall concentrate on the Options and Clipboard Format options.



Clipboard Format
- The Clipboard Format allows you to copy a Selenese command from the editor and paste it as a code snippet.
- The format of the code follows the option you selected here in Clipboard Format's list.
- HTML is the default selection.

For example, when you choose Java/JUnit 4/WebDriver as your clipboard format, every Selenese command you copy from Selenium IDE's editor will be pasted as Java code. See the illustration below.



Selenium IDE Options dialog box
You can launch the Selenium IDE Options dialog box by clicking Options è Options... on the menu bar. Though there are many settings available, we will concentrate on the few important ones.



Default Timeout Value : This refers to the time that Selenium has to wait for a certain element to appear or become accessible before it generates an error. Default timeout value is 30000ms.

Selenium IDE extensions : This is where you specify the extensions you want to use to extend Selenium IDE's capabilities. You can visit http://addons.mozilla.org/en-US/firefox/ and use "Selenium" as a keyword to search for the specific extensions.

base URL: Keep this checked if you want Selenium IDE to remember the Base URL every time you launch it. If you un-check this, Selenium IDE will always launch with a blank value for the Base URL.

Auto-start record : If you check this, Selenium IDE will immediately record your browser actions upon startup.

Locator builders : This is where you specify the order by which locators are generated while recording. Locators are ways to tell Selenium IDE which UI element should a Selenese command act upon. In the setup below, when you click on an element with an ID attribute, that element's ID will be used as the locator since "id" is the first one in the list. If that element does not have an ID attribute, Selenium will next look for the "name" attribute since it is second in the list. The list goes on and on until an appropriate one is found.



Base URL Bar
It has a dropdown menu that remembers all previous values for easy access.
The Selenese command "open" will take you to the URL that you specified in the Base URL.



In this tutorial series, we will be using http://newtours.demoaut.com as our Base URL. It is the site for Mercury Tours, a web application maintained by HP for web testing purposes. We shall be using this application because it contains a complete set of elements that we need for the succeeding topics.

The Base URL is very useful in accessing relative URLs. Suppose that your Base URL is set to http://newtours.demoaut.com. When you execute the command "open" with the target value "signup ", Selenium IDE will direct the browser to the sign-up page. See the illustration below.



Toolbar




Playback Speed: This controls the speed of your Test Script Execution.

Record: This starts/ends your recording session. Each browser action is entered as a Selenese command in the Editor.

Play entire test suite: This will sequentially play all the test cases listed in the Test Case Pane.

Play current test case: This will play only the currently selected test case in the Test Case Pane.

Pause/Resume: This will pause or resume your playback.

Step: This button will allow you to step into each command in your test script.

Apply rollup rules: This is an advanced functionality. It allows you to group Selenese commands together and execute them as a single action.





Comments

  1. This is the best explanation I have seen so far on the web. I was looking for a simple yet informative about this topic finally your site helped me a lot.
    selenium Classes in chennai
    selenium course
    selenium Testing Training

    ReplyDelete
  2. I really like reading technology through a post that can make people think. Also, many thanks for permitting me to comment!

    ReplyDelete

Post a Comment

Popular posts from this blog

Everything You Need To Know About Sikuli A GUI automation tool

Selenium Sikuli for Visual flows automation: Introduction: Selenium Sikuli , A tool to automate the GUI test scripts using image recognition method. Sikuli allows users to automate visual work flows using a screenshots (specific method called “ Visual Image Match ”), in this method all the elements of the webpage are snipped and saved in .png / supported file formats. Sikuli, by using “Visual Image Match” algorithm, it will match the stored image with the image on the web-elements and performs the scripted action. Practical Uses: Ø Useful to automate Flash objects Ø Automating stable GUI components / Objects / Web-elements Ø Automating window based applications Ø Used to automate Audio/Video player, Desktop & Flash games on websites Sikuli Benefits: Ø Free Open Source Automation Tool Ø Automating flash enabled web-elements and objects Ø Can automate web-elements without ID/Name Download Sikuli Jar files: Ø...

Guide to install selenium web-Driver from selenium foundation program

Selenium foundation program: Before installing Java for Selenium Web-driver framework automation, install Java Development Kit (JDK) and Java Run-time Environment (JRE) on your windows computer. Navigate to Oracle Official site here . Click on “Download” button as shown below Click on “Accept License Agreement”, which are displayed upon clicking “Download button. Check your operating system and download the file. (32bit / 64bit)    Quickly run the downloaded installer, which installs both the JDK ( Java Development Kit ) and JRE ( Java Run-time ). Install JDK and by Default Java installs at this place “C:/Program Files/Java”. Java folder contain two folder of name “jdk1.8.0_111” and “jre1.8.0_111” as shown below. Setting up System variables & ClassPath – Follow below screens: Right Click on My Computer. Now click on Advanced System Setting. System Variables setu-p: ClassPath Setu-p: Check the installation using CMD pro...

Selenium Foundation Program - Introduction to Selenium

Introduction to Selenium What is Selenium Tool? Selenium is a free (open-source) automated testing suite for web applications across different browsers and platforms. It is quite similar to HP Quick Test Pro (QTP) / HP Unified Functional Test (UFT) only that Selenium focuses on automating web-based applications. Selenium is not just a single tool; Selenium is a suite of software's , each component has its own advantages and disadvantages. Click here to know more about  Selenium birth picture &  Selenium components . What are the features of selenium automation tool? Ø Selenium is Free and open-source tool. Ø Automation of AJAX/CSS applications is easy. Ø Good cross browser testing tool. Ø Contains record and playback ( Selenium-IDE ) facility. Ø Best for GUI-intelligent field selection (uses IDs, names, or X-Paths as needed). Ø Auto-complete feature available in IDE for all common commands. Ø User-fr...