add:  var locatorPrefix = locatorFunction.prefix || result[1].toLowerCase();  this.locatorFunctions.push(locatorFunction); this.locators[locatorPrefix] = locatorFunction; 
context: PageBot = function(pageWindow) {    if (pageWindow) {        this.currentWindow = pageWindow;        this.currentDocument = pageWindow.document;        this.location = pageWindow.location.pathname;        this.title = function() {return this.currentDocument.title;};        // Register all locate* functions        this.locatorFunctions = new Array();        for (var f in this) {            if (typeof(this[f]) == 'function' && f.match(/^locate/)) {                this.locatorFunctions.push(this[f]);            }        }    }};
meta: 3175	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3175/28e92872d79dde130d1e6dfb1c795eb73f87a0ce/selenium-browserbot.js/clean/code/javascript/selenium-browserbot.js