Tag Archives: user extensions

make own commands and add it into user-extension to use it from selenium IDE

Read blog first LINK



Sequence of Evaluation and Flow Control – while loop in selenium IDE – 2

Before read please refer This post


This is example of while loop user extension using selenium IDE.

Make one file user-extension.js in C:/ drive.

Write code from this LINK

Now start Selenium IDE. add  user-extension.js

Restart Selenium IDE.

Go to Source tab of selenium IDE. and paste HTML code in that. LINK

now come to Table tab of selenium tab and run this code. before start running slow speed of execution.

keep watching Log tab of selenium IDE.


Sequence of Evaluation and Flow Control – while loop in selenium IDE - 2

Sequence of Evaluation and Flow Control – while loop in selenium IDE – 2




Reference http://wiki.openqa.org/download/attachments/379/goto_sel_ide.js

Selenium IDE user extension example 4

Let’s now create this extension.

  • Open your favorite text editor and open the user-extension.js file you created earlier.
  • We are going to create a function called storeRandom. The function will look like the following:
Selenium.prototype.doStoreRandom = function(loacator){
 random = Math.floor(Math.random()*10000000);

this.doType(loacator, random);
  • Save the file.
  • Restart Selenium IDE. and open website in firefox
  • take xpath of Paste Name / Title: field.
  • Now go to selenium IDE and Create a new step with storeRandom and Enter Xpath in Target.

Selenium IDE user extension example 3

This is taken from Website for learning purpose.

  • Make new user-extension.js  file and put in C:/ drive [or any drive you like].
  • Write this code LINK in that and save it.
  • Now open firefox and go to Gmail.com
  • take xpath of Username field [//*[@id=’Email’]]
  • Now start Selenium IDE and add user-extension.js  file and restart it.
  • Take HTML code from Link and paste into Selenium IDE Source tab.
  • Now Run this and check Gmail Username field.

A email has been added.

Reference http://tinyurl.com/y78y338

Selenium IDE user extension example 2

Please refer ME and This

In this blog we check out one more example.

Please checkout one newspaper site LINK

Go to following section

Start Firebug and take Xpath of Label and TextBox

Xpath for Label is


Xpath for TextBox is


Now Make javascript function and add it into user-extension.js  

Get the Javascript CODE from This Link

Now its time use this fuction from Selenium IDE.

So lets start firefox and navigate to Newspaper website

Now open Selenium IDE.

Add user-extension.js  file in selenium IDE. and restart Selenium IDE.

Now type following lines in selenium IDE. or copy paste code in Source tab LINK

Lets see what happen when we run this code.

We expect that captcha code should be calculated and entered into textbox

How to make own commands and add it into user-extension to use it from selenium IDE??

This is very interesting 🙂

  1. Go to any computer driver lets consider C:/
  2. Make new file user-extension.js in that.
  3. Now add following code in user-extension.js file and save it.


Selenium.prototype.doPrintName = function()
alert("Selenium ");

4. Start firefox and Now open Selenium IDE.

5. Go to Selenium-IDE’s Options=>Options=>General tab

6. Add user-extension.js path in Selenium core extensions textbox and click on OK.

How to make own commands and add it into user-extension to use it from selenium IDE

How to make own commands and add it into user-extension to use it from selenium IDE



7. Restart Selenium IDE.
8. now go to Command field dropdown and type PrintName
























Add this command and click on Play current testcase button

User get following output







How to use while loop in selenium ide?

Please refer ME

Perform while loop in the Selenium IDE.

Please refer ME

How do you set user extensions in Selenium IDE?

Please refer ME

How to include user extensions in selenium IDE?

Please refer ME


For a better web


News and reviews from the world of gadgets, gear, apps and the web


News About Tech, Money and Innovation

Digital Inspiration

Tips and tutorials around all things tech.

Thinkwareglobal's Blog

Just another WordPress.com weblog

Kenazari's Blog

Just another WordPress.com weblog

Richfowler1's Blog

Just another WordPress.com weblog

Romaicus's Blog

Just another WordPress.com weblog


Just another WordPress.com site


Just another WordPress.com site


Just another WordPress.com site


digital media expert blog

Thinking in Silverlight

Silverlight/WPF/Windows 8 Store App

Different Journeys

Let's make life easier!




Promoting Indian language Books

Actively Lazy

Software, crafted with passion


An ongoing discussion about SAP infrastructure

SAP Career

Your Career Mentor


Just another WordPress.com site

The secret product manager

Thoughts about product management, SUSE, Linux, ARM processors, Cloud, AIX, Power Systems, and other things that interest me

Sap Certification Material . Com

Quality store for sap software and courses

Simon Les Flex's Blog

SAP Process Integration Specialist - NOW WE CAN DO BETTER!

Oracle Technologies Primer

An Oracle Fusion Middleware and iPaaS blog!

Gilberto Holms

Java, Middleware, SOA Architecture Blog

The Skeleton

Java code skeletons, tips and pointers

J@n van Zoggel

Random technology stuff since I tend to forget things easily ....

The Pragmatic Integrator

Hints and tips from a pragmatic integration specialist


The pace of life..

Optimalbg's Blog

Just another WordPress.com site

IT Jobs in USA

Keep the track of this Blog if you are looking out for some good Opportunities to work in USA....

Referral Jobs | Right Place to Get a Job

Hurry you are one Click away to get a job - Fresher Jobs for 2012, 2013 fresher’s and also high paid jobs for well Experienced IT professionals on Referal jobs.


ISO Consulting | ISO 27001 | ISO 20000 | CMMI | BCM | GRI Sustainability Reporting & Assurance | eLearning | Trainings | Philippines

Michael Korn's Blog

Musings on Life, Career, Faith and Technology


Just another WordPress.com weblog


.Net Core, AspNetCore, Entity Framework, Entity Framework Core, AspNetIdentity, AspNetIdentityCore, Unit Test, WCF, Workflows

SQA and Testers Blog

Just another WordPress.com weblog

Expertqtp's Weblog

Just another WordPress.com weblog

Sai Chamarthi

Experienced Testing Professional


A great WordPress.com site

Suresh4qtp's Blog

Just another WordPress.com site


This WordPress.com site is the cat’s pajamas

It's always something...

Just another WordPress.com weblog

Faculty of Information Technology - Lê Ngọc Tiến

Be Yourself! Simplify Our Goals! Nothing is Impossible!

Anti-Malware Testing

Thoughts on security product testing past and present

Methods & Tools

Practical knowledge for the software developer, tester and project manager