WWW::WebKit - Perl extension for controlling an embedding WebKit engine
use WWW::WebKit; my $webkit = WWW::WebKit->new(xvfb => 1); $webkit->init; $webkit->open("http://www.google.com"); $webkit->type("q", "hello world"); $webkit->click("btnG"); $webkit->wait_for_page_to_load(5000); print $webkit->get_title;
WWW::WebKit is a drop-in replacement for WWW::Selenium using Gtk3::WebKit as browser instead of relying on an external Java server and an installed browser.
None by default.
Initializes Webkit and GTK3. Must be called before any of the other methods.
Please see WWW::Selenium for the full documentation of these methods.
Set the default timeout to $timeout.
Works just like wait_for_element_present but instead of waiting for the element to appear, it waits for the element to disappear.
Wait for an alert with the given text to happen. If $text is undef, it waits for any alert. Since alerts do not get automatically cleared, this has to be done manually before causing the action that is supposed to throw a new alert:
$webkit->alerts([]); $webkit->click('...'); $webkit->wait_for_alert;
Drag&drop that works with native HTML5 D&D events.
See WWW::Selenium for API documentation. See Test::WWW::WebKit for a replacement for Test::WWW::Selenium. See Test::WWW::WebKit::Catalyst for a replacement for Test::WWW::Selenium::Catalyst.
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 WWW::WebKit, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WWW::WebKit
CPAN shell
perl -MCPAN -e shell install WWW::WebKit
For more information on module installation, please visit the detailed CPAN module installation guide.