WWW::Selenium::Utils - helper functions for working with Selenium
use WWW::Selenium::Utils qw(generate_suite); # convert .wiki files to .html and create TestSuite.html generate_suite( test_dir => "/var/www/selenium/tests", base_href => "/monkey", verbose => 1, );
This package contains utility functions for working with Selenium.
generate_suite() will convert all .wiki files in selenium/tests to .html, and then create a TestSuite.html file that contains links to all the .html files.
generate_suite()
The .wiki files are much easier to read and write. The format of .wiki files is like this:
title | cmd | opt1 | opt2 | | cmd | opt1 | # comment # empty lines are ignored # comments are ignored too
Parameters:
The path to the 'tests' directory inside selenium.
If true, informative messages will be printed.
Will prepend the given location to all locations for the open and assert/verifyLocation commands.
If you set the verbose option to 1 when calling generate_suite, the function will print lines detailing what it is doing.
verbose
Uses CGI.
There are no known bugs in this module. Please report problums to Luke Closs (cpan@5thplane.com). Patches are welcome.
Luke Closs (cpan@5thplane.com)
Copyright (c) 2005 Luke Closs (cpan@5thplane.com). All rights reserved.
This module is free software; you can redstribute it and/or modify it under the same terms as Perl itself. See perlartistic.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
To install WWW::Selenium::Utils, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WWW::Selenium::Utils
CPAN shell
perl -MCPAN -e shell install WWW::Selenium::Utils
For more information on module installation, please visit the detailed CPAN module installation guide.