NAME

Test::WWW::Selenium::More::Manual::ForTheImpatient

VERSION

version 0.08

NAME

Test::WWW::Selenium::More::Manual::ForTheImpatient - Selenium testing for the impatient

INSTALL THE SELENIUM SERVER

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.

WRITE A BASIC SELENIUM TEST

# 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;

RUN YOUR SELENIUM TEST

# 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

AUTHOR

Eric Johnson <kablamo at iijo dot nospamthanks dot org>

COPYRIGHT AND LICENSE

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.