rem: var element = Utils.getElementAt(elementId); 
add: var element = Utils.getElementAt(elementId, this.location); 
context: FirefoxDriver.prototype.getElementSelected = function(elementId) {    var element = Utils.getElementAt(elementId);    var selected = false;    try {        var option = element.QueryInterface(Components.interfaces.nsIDOMHTMLOptionElement)        selected = option.selected;    } catch(e) {}    try {        var inputElement = element.QueryInterface(Components.interfaces.nsIDOMHTMLInputElement)        if (inputElement.type == "checkbox" || inputElement.type == "radio") {            selected = inputElement.checked;        }    } catch(e) {}    this.server.respond("getElementSelected", selected);}
meta: 3428	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/3428/3aa848daac3cf6b346c932bafbb7bfd763430786/wrappedElement.js/clean/firefox/src/extension/content/wrappedElement.js