Test::WWW::Selenium::More::Manual::ForTheImpatient
version 0.08
Test::WWW::Selenium::More::Manual::ForTheImpatient - Selenium testing for the impatient
Selenium is written in Java. So you need Java. Then download the latest selenium server jar file from http://seleniumhq.org/download. Put it anywhere.
# put the following code into t/test.t use Test::Most; use Test::WWW::Selenium::More; my $s = Test::WWW::Selenium::More->new( host => 'localhost', port => 80, browser_url => "http://www.google.com", ); $s->open_ok("http://www.google.com"); $s->title_like(qr/Google Search/); done_testing;
# Start your web server on localhost, port 80 ... # Start the Selenium server java -jar selenium-server.jar -port 4444 -trustAllSSLCertificates -browserSessionReuse # Run your tests against localhost, port 80 prove -lrv t/test.t
Eric Johnson <kablamo at iijo dot nospamthanks dot org>
This software is copyright (c) 2012 by Foxtons.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Test::WWW::Selenium::More, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Test::WWW::Selenium::More
CPAN shell
perl -MCPAN -e shell install Test::WWW::Selenium::More
For more information on module installation, please visit the detailed CPAN module installation guide.