Skip to content
This repository

Test-WWW-Selenium Perl Selenium RC Driver

branch: master

Fetching latest commit…


Cannot retrieve the latest commit at this time

Octocat-spinner-32 lib
Octocat-spinner-32 t
Octocat-spinner-32 target
Octocat-spinner-32 util
Octocat-spinner-32 BUILDING_FROM_SELENIUM.txt
Octocat-spinner-32 Changes
Octocat-spinner-32 README
Octocat-spinner-32 build.xml
Octocat-spinner-32 dist.ini
Octocat-spinner-32 pom.xml
Octocat-spinner-32 release.txt
Octocat-spinner-32 todo.txt
Octocat-spinner-32 weaver.ini
Test-WWW-Selenium is a perl driver and test library for Selenium Remote 
Control (SRC).  You will need to setup a Selenium Server that can launch 

Selenium Remote Control (SRC) is a test tool that allows you to write
automated web application UI tests in any programming language against
any HTTP website using any mainstream JavaScript-enabled browser.  SRC
provides a Selenium Server, which can automatically start/stop/control
any supported browser. It works by using Selenium Core, a pure-HTML+JS
library that performs automated tasks in JavaScript; the Selenium
Server communicates directly with the browser using AJAX (XmlHttpRe-

This module sends commands directly to the Server using simple HTTP
GET/POST requests.  Using this module together with the Selenium
Server, you can automatically control any supported browser.

To use this module, you need to have already downloaded and started the
Selenium Server.  (The Selenium Server is a Java application.)

The Selenium Server is available here:
or on CPAN in the Alien-SeleniumRC package:

To install:

    perl Makefile.PL
    make test
    make install

Once installed, your test script will look something like this:

    use strict;
    use warnings;
    use Test::More tests => 4;
    use Test::WWW::Selenium;

    my $sel = Test::WWW::Selenium->new( host => "localhost",    # where selenium-server is running
                                        browser => "*firefox",  # browser to server should launch
                                        browser_url => "");

    $sel->title_is('Super Cool Mega Site!');
    $sel->text_is('todays_awesomeness', '100');
    $sel->text_like('status', qr/returned 42 results/);

Copyright (c) 2006 Luke Closs <>.
Copyright (c) 2006 Dan Fabulitch <>.
Copyright (c) 2005, 2006 Mattia Barbon <>.

Other contributors: Dan Dascalescu, Scott McWhirter.

lib/WWW/ comes from the Selenium-RC project, which releases
it under the Apache License, Version 2.0.

This package is free software; you can redistribute it and/or
modify it under the same terms as Perl itself.

Something went wrong with that request. Please try again.