So I exported some unit tests from the Selenium IDE to Python. Now I\'m trying to debug something, and I\'ve noticed that Selenium uses the logging
module. There
In your unit test script, place
import logging
logging.basicConfig(filename = log_filename, level = logging.DEBUG)
where log_filename
is a path to wherever you'd like the log file written to.
Without the call to logging.basicConfig
or some such call to setup a logging handler, the LOGGER.debug
command does nothing.