rem: if (this.waitForCondition == null || this.waitForCondition()) { 
add: if (this.waitForCondition == null) { LOG.debug("null condition; let's continueTest()"); LOG.debug("Command complete"); this.commandComplete(this.result); this.continueTest(); } else if (this.waitForCondition()) { 
context:     continueTestWhenConditionIsTrue: function () {        /**         * Busy wait for waitForCondition() to become true, and then carry         * on with test.  Fail the current test if there's a timeout or an         * exception.         */        //LOG.debug("currentTest.continueTestWhenConditionIsTrue()");        selenium.browserbot.runScheduledPollers();        try {            if (this.waitForCondition == null || this.waitForCondition()) {                LOG.debug("condition satisfied; let's continueTest()");                this.waitForCondition = null;                this.continueTest();            } else {                //LOG.debug("waitForCondition was false; keep waiting!");                window.setTimeout(fnBind(this.continueTestWhenConditionIsTrue, this), 100);            }        } catch (e) {            var lastResult = {};            lastResult.failed = true;            lastResult.failureMessage = extractExceptionMessage(e);            this.commandComplete(lastResult);            this.testComplete();        }    },
meta: 3175	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3175/afa54887f887b5863f6af88f1b5293c9af5683a3/selenium-executionloop.js/clean/code/javascript/core/scripts/selenium-executionloop.js