Test::WWW::WebKit::Catalyst - Perl extension for using an embedding WebKit engine for Catalyst tests
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");
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.
None by default.
WWW::Selenium and Test::WWW::Selenium for the base packages. See Test::WWW::Selenium for API documentation.
Stefan Seifert, <nine@cpan.org>
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.
To install Test::WWW::WebKit::Catalyst, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Test::WWW::WebKit::Catalyst
CPAN shell
perl -MCPAN -e shell install Test::WWW::WebKit::Catalyst
For more information on module installation, please visit the detailed CPAN module installation guide.