I have locally modified the SeleneseRunner to have a button to turn the log on and off. In order to do so, I modified the logging to have the following method:

Logger.prototype.visible = function() {
    return this.logConsole.style.display == "";
};

I then added the following method to SeleneseRunner.html:

function toggleLOGConsole() {
    if (LOG.visible()) {
        LOG.hide();
    }
    else {
        LOG.show();
    }
}

and a button wherever you like:

<button type="button" id="toggleLog" onClick="toggleLOGConsole();">Toggle Log</button>

This all works much better if you start with the SeleneseRunner from code/_javascript_/SeleneseRunner.html. I think it helps to be able to show the log as well as close it.

Ed

----------------------------------
Ed Chapel
Application Developer
ThoughtWorks - US
M: 503-998-6917
----------------------------------
_______________________________________________
Selenium-devel mailing list
Selenium-devel@lists.public.thoughtworks.org
http://lists.public.thoughtworks.org/mailman/listinfo/selenium-devel

Reply via email to