1WWW::Selenium::Util(3)User Contributed Perl DocumentationWWW::Selenium::Util(3)
2
3
4
6 WWW::Selenium::Util - Utility code to help test using Selenium
7
9 WWW::Selenium::Util contains utility functions to help use Selenium in
10 your test scripts:
11
12 use WWW::Selenium::Util qw/server_is_running/;
13 use Test::More;
14
15 if (server_is_running) {
16 plan tests => 1;
17 }
18 else {
19 plan skip_all => "No selenium server found!";
20 exit 0;
21 }
22
23 # ... your tests ...
24
26 server_is_running( $host, $port )
27 Returns true if a Selenium server is running. The host and port
28 parameters are optional, and default to "localhost:4444".
29
30 Environment vars "SRC_HOST" and "SRC_PORT" can also be used to
31 determine the server to check.
32
34 Written by Luke Closs <selenium@5thplane.com>
35
37 Copyright (c) 2007 Luke Closs <lukec@cpan.org>
38
39 This program is free software; you can redistribute it and/or modify it
40 under the same terms as Perl itself.
41
42
43
44perl v5.12.0 2010-04-02 WWW::Selenium::Util(3)