I have found no good way to capture the communications between Watir/Selenium Webdriver and the browser being driven. While investigating some weird delay in our browser tests scenarii, I end up doing a tcpdump to capture the http requests driving the browser ( T92613 ).
It would be rather nice to have the Selenium logs to be optionally emitted on the terminal. Would help diagnosis.
mediawiki_selenium creates a browser objects invoking Watir (in turn invoking Selenium WebDriver). The browser creation accepts a :listen option to attach a class implementing AbstractWebDriverEventListener https://selenium.googlecode.com/git/docs/api/java/org/openqa/selenium/support/events/AbstractWebDriverEventListener.html
Should let us log everything.