The logging Selenium driver wraps another Selenium driver and logs every operation and its result into java.util.logging. This driver recognizes the following URL, where <anotherDriverURL> is a complete valid URL of a Selenium driver to be wrapped.
Several concrete examples shown below:
This driver is packaged int the factory API jar, and thus can be used without having any additional dependency.
The Selenium instance returned from this driver implements additional LoggingSelenium interface, through which you can customize the logging behavior:
Selenium selenium = SeleniumFactory.create( "log:embedded-rc:*iexplore","http://infradna.com"); LoggingSelenium ls = (LoggingSelenium)selenium; ls.setLogger(Logger.getLogger(this.getClass().getName())); ls.setLevel(Level.INFO);