Lithium::WebDriver::Utils - Utility functions used throughout the driver framework
Shared utility functions to simplify the code base. Additionally timestamps can be added if the value of debug is set to 'timestamp'
Print a line of text to standard error (STDERR) prefixed by 'ERROR >'.
Print a string of text to standard error prefixed by 'DEBUG >', but only when debuging is turned on.
Print a clean represenation of a single perl datastructure to standard error, but only when debugging is enabled in the configs. All output lines will be prefixed by 'DEBUG >'
Disable all output messages, note this dangerous as you no longer get any debug level output.
Rebind logging functions to different functions. All rebinding lambda functions take a single parameter which is the log message.
Parameters
The debug function to rebind to.
The dumping function to rebind to.
The error function to rebind to.
EXAMPLE
To rebind the error function, an anonymous function is passed to the error parameter key, it's important to note that the lambda function takes exactly 1 input.
BIND_LOGGING error => sub { print "ERROR BAD> $_[0]\n };
Written by Dan Molik <dan at d3fy dot net>
<dan at d3fy dot net>
To install Lithium::WebDriver, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Lithium::WebDriver
CPAN shell
perl -MCPAN -e shell install Lithium::WebDriver
For more information on module installation, please visit the detailed CPAN module installation guide.