Stefan Seifert > Test-WWW-WebKit-Catalyst-0.01 > Test::WWW::WebKit::Catalyst

Download:
Test-WWW-WebKit-Catalyst-0.01.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 0.01   Source   Latest Release: Test-WWW-WebKit-Catalyst-0.02

NAME ^

Test::WWW::WebKit::Catalyst - Perl extension for using an embedding WebKit engine for Catalyst tests

SYNOPSIS ^

    use Test::WWW::WebKit::Catalyst;

    my $webkit = Test::WWW::WebKit::Catalyst->new(app => 'TestApp', xvfb => 1);
    $webkit->init;

    $webkit->open_ok("http://localhost:$ENV{CATALYST_PORT}/index");
    $webkit->type_ok("q", "hello world");
    $webkit->click_ok("xpath=//button");
    $webkit->wait_for_page_to_load_ok(5000);
    $webkit->title_is("foo");

DESCRIPTION ^

Test::WWW::WebKit::Catalyst is a drop-in replacement for Test::WWW::Selenium::Catalyst using Gtk3::WebKit as browser instead of relying on an external Java server and an installed browser.

EXPORT

None by default.

SEE ALSO ^

WWW::Selenium and Test::WWW::Selenium for the base packages. See Test::WWW::Selenium for API documentation.

AUTHOR ^

Stefan Seifert, <nine@cpan.org>

COPYRIGHT AND LICENSE ^

Copyright (C) 2011 by Stefan Seifert

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.12.3 or, at your option, any later version of Perl 5 you may have available.

syntax highlighting: