WWW::Mechanize::PhantomJS::Catalyst - mechanize javascript in your catalyst apps
A mix of WWW::Mechanize::Catalyst and WWW::Mechanize::PhantomJS, exposes a WWW::Mechanize API for driving a catalyst server running in the background by PhantomJS/GhostDriver.
use WWW::Mechanize::PhantomJS::Catalyst; my $mech = WWW::Mechanize::PhantomJS::Catalyst->new(app => 'MyApp'); $mech->get("/hello.html");
You'll need PhantomJS v1.9+, and WWW::Mechanize::PhantomJS from here: https://github.com/dk/www-mechanize-phantomjs ( or v0.04 from the official distro when pull requests from github will be incorporated and published). The same is also for valid the latest Selenium::Remote::Driver (https://github.com/dk/Selenium-Remote-Driver or 0.2002 when out)
Dmitry Karasik <dmitry@karasik.eu.org>.
This program is distributed under the standard Perl licence.
Half of the code is borrowed from Stefan Seifert's Test::WWW::WebKit::Catalyst, reused under the same licence.
To install WWW::Mechanize::PhantomJS::Catalyst, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WWW::Mechanize::PhantomJS::Catalyst
CPAN shell
perl -MCPAN -e shell install WWW::Mechanize::PhantomJS::Catalyst
For more information on module installation, please visit the detailed CPAN module installation guide.