This tutorial is for those who need to learn how to create their own extensions for Selenium. The tutorial is aimed at more experienced Selenium users who understand basic JavaScript.When creating a new user extension you will need add your code to the user-extension.js file. You will need to make sure that this file is accessible to all Selenium Derivatives(Selenium IDE,Selenium Core and Selenium Remote Control).

Lets start by breaking down an extension from the user contributed section of extensions from the OpenQA Wiki

If you follow these basic steps you will be able to create your own user extension for Selenium and call your functions just as if they were built in to Selenium!