• Stars
    star
    31
  • Rank 813,933 (Top 17 %)
  • Language
    Perl
  • Created over 16 years ago
  • Updated over 9 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Test-WWW-Selenium Perl Selenium RC Driver

Build Status

Overview

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 browsers.

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- quest).

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.

Prereqs

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:

http://www.seleniumhq.org/download/

or on CPAN in the Alien-SeleniumRC package:

http://search.cpan.org/dist/Alien-SeleniumRC

Installation

perl Makefile.PL
make
make test
make install

Usage

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

#!/usr/bin/perl
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 => "http://your.site");

$sel->open("http://your.site");
$sel->title_is('Super Cool Mega Site!');
$sel->text_is('todays_awesomeness', '100');
$sel->text_like('status', qr/returned 42 results/);

Fineprint

Copyright (c) 2006 Luke Closs [email protected]. Copyright (c) 2006 Dan Fabulitch [email protected]. Copyright (c) 2005, 2006 Mattia Barbon [email protected].

Other contributors: Dan Dascalescu, Scott McWhirter.

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

http://www.apache.org/licenses/LICENSE-2.0

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

More Repositories

1

stripe-perl

Perl library to connect to the Stripe API
Perl
36
star
2

vantrash

Vancouver Trash Reminder System
JavaScript
12
star
3

recyclight

Like a bat-signal but for garbage day
Perl
7
star
4

parlapi

Web service to provide Canadian Parliamentary info in nice Web 2.0 formats
Perl
6
star
5

momframe

Send images from flickr accounts to a Kodak Pulse digital picture frame
Perl
5
star
6

net-ckan

A Perl REST client for CKAN
Perl
5
star
7

collab-web-game

Collaborative real-time web game
JavaScript
5
star
8

cpan-alien-seleniumrc

Packages the Selenium Remote Control server.
Perl
5
star
9

xocom

XOCom - a library to support building DHTML activities on the XO Laptop
JavaScript
4
star
10

cpan-test-mock-lwp

Easy mocking of LWP packages in Perl unit tests
Perl
4
star
11

cpan-net-parliament

Net::Parliament scrapes parl.gc.ca
Perl
4
star
12

cpan-zen-koans

A Perl library containing over 100 Zen Koans.
Perl
4
star
13

vhs-door

VHS Door Arduino Framework
Python
4
star
14

socialcalc-xocom

Sweet Socialcalc and XOCom working together
JavaScript
4
star
15

httpactivity

A base class for HTTP based activities for the OLPC laptop
Python
3
star
16

cpan-mocked

mocked.pm unit test helper module
Perl
3
star
17

biopay

Biodiesel Co-op Billing System
JavaScript
3
star
18

yapc10-schedule

YAPC10 Schedule Phonegap App
JavaScript
3
star
19

cpan-file-logreader

Tail log files with state between runs
Perl
2
star
20

socialtext-backup-s3

Socialtext Workspace backups to Amazon S3
Perl
2
star
21

twilio-presentation

Twilio for fun and profit Presentation
Vim Script
2
star
22

stories

Make your own adventure
JavaScript
2
star
23

cinnabarhiking

Cinnabar Hiking Website
2
star
24

cpan-net-recurly

Perl Recurly API client - Net::Recurly
Perl
2
star
25

vanbiodiesel

Vancouver Biodiesel Co-op website generater tools
CSS
2
star
26

onepagewiki

OnePageWiki Activity for the OLPC XO Laptop
JavaScript
2
star
27

yitancast

Yi-Tan podcast code
Perl
2
star
28

arduino-blink

My first arduino blink program, with makefile working on my macbook
2
star
29

cpan-www-selenium-utils

Helper functions for working with Selenium RC and Perl
2
star
30

net-textmessage-canada

Lookup a mobile phone SMS gateway by the number and provider.
Perl
2
star
31

gitrad

Wikrad curses based wiki browser and editor
Perl
1
star
32

earrings

Code to generate earrings suitable for laser printing
JavaScript
1
star
33

Oilert

Oil Tanker Notification Service
Perl
1
star
34

scanbc_yo

Inserts @Goldfishyo into @ScanBC tweets.
Perl
1
star
35

shelfer

Code to create a shelf
Perl
1
star
36

presentation-web-testing

My Sporx presentation on Web Testing
JavaScript
1
star
37

ROBOKOAN

The twitter @ROBOKOAN auto-tweeter
Perl
1
star
38

resume

Luke's Resume site
JavaScript
1
star
39

ca_corps_scraper

Scraper for Industry Canada's list of Federally registered Corporations
Perl
1
star