rem:  this.locatorFunctions = new Array(); for (var f in this) { if (typeof(this[f]) == 'function' && f.match(/^locate/)) { this.locatorFunctions.push(this[f]); 
add:   this.locatorFunctions = new Array(); this.locators = {}; for (var functionName in this) { var result = /^locateElementBy([A-Z].+)$/.exec(functionName); if (result != null) { var locatorFunction = this[functionName]; if (typeof(locatorFunction) != 'function') { continue; 
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: 3428	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3428/282b7aeb99ad005ea5dbd64f74b3b3890e58c578/selenium-browserbot.js/clean/code/javascript/selenium-browserbot.js