results = eval_xpath(locator.string, inDocument); 
results = eval_xpath(locator.string, inDocument, pageBot); 
function eval_locator(locator, inDocument){    locator = parse_locator(locator);        var pageBot;    if (typeof(selenium) != 'undefined' && selenium != undefined) {        if (typeof(editor) == 'undefined' || editor.state == 'playing') {            smart_log('info', 'Trying [' + locator.type + ']: '                + locator.string);        }        pageBot = selenium.browserbot    }    else {        if (!GLOBAL.mozillaBrowserBot) {            // create a browser bot to evaluate the locator. Hand it the IDE            // window as a dummy window.            GLOBAL.mozillaBrowserBot = new MozillaBrowserBot(window)        }        pageBot = GLOBAL.mozillaBrowserBot;    }        var results = [];        if (locator.type == 'xpath' || (locator.string.substr(0, 2) == '//' &&        locator.type == 'implicit')) {        results = eval_xpath(locator.string, inDocument);    }    else if (locator.type == 'css') {        results = eval_css(locator.string, inDocument);    }    else {        var element = pageBot            .findElementBy(locator.type, locator.string, inDocument);        if (element != null) {            results.push(element);        }    }        return results;}
4983	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/4983/f7ada6c3bf281c06c938359ab1756a2ece016364/ui-element.js/clean/src/content/ui-element.js