rem: } if (retry) { setTimeout(fnBind(function() { sendToRC(dataToBePosted, urlParms, callback, xmlHttpObject, async); }, this), 1000); } else { callback(); 
add: if (retry) { setTimeout(fnBind(function() { sendToRC(dataToBePosted, urlParms, callback, xmlHttpObject, async); }, this), 1000); } else { callback(); } 
context: function sendToRC(dataToBePosted, urlParms, callback, xmlHttpObject, async) {    if (async == null) {        async = true;    }    if (xmlHttpObject == null) {        xmlHttpObject = XmlHttp.create();    }    var url = buildDriverUrl() + "?"    if (urlParms) {        url += urlParms;    }    url += "&localFrameAddress=" + (proxyInjectionMode ? makeAddressToAUTFrame() : "top");    url += getSeleniumWindowNameURLparameters();    url += "&uniqueId=" + uniqueId;    if (callback == null) {        callback = function() {        };    }    url += buildDriverParams() + preventBrowserCaching();    dataToBePosted = "postedData=" + encodeURIComponent(dataToBePosted);    var wrappingCallback = function() {        if (xmlHttpObject.readyState == 4) {            if (xmlHttpObject.status == 200) {                var retry = false;                if (typeof currentTest != 'undefined') {                    var command = currentTest._extractCommand(xmlHttpObject);                        //console.log("*********** " + command.command + " | " + command.target + " | " + command.value);                    if (command.command == 'retryLast') {                        retry = true;                    }                }                if (retry) {                    setTimeout(fnBind(function() {                        sendToRC(dataToBePosted, urlParms, callback, xmlHttpObject, async);                    }, this), 1000);                } else {                    callback();                }            }        }    }    //xmlHttpObject.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");    xmlHttpObject.open("POST", url, async);    xmlHttpObject.onreadystatechange = wrappingCallback;    xmlHttpObject.send(dataToBePosted);    return null;}
meta: 3428	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/3428/dbe982e89ab58bfbdcacd8bff39712cf2f735085/selenium-remoterunner.js/buggy/src/main/resources/core/scripts/selenium-remoterunner.js