
Gtk2::WebKit::Mechanize - WWW::Mechanize done with HTML WebKit engine.

$mech = Gtk2::WebKit::Mechanize->new;
$mech->get('http://www.example.org');
$mech->submit_form(fields => { field_a => 'A', field_b => 'B' });
# returns "Hello"
$mech->run_js('return "He" + "llo"');

This module provides WWW::Mechanize like interface using WebKit browser engine.
Aditionally it allows access to some of JavaScript functionality (e.g. calling JavaScript functions, accessing alerts and console messages etc.).

Constructs new Gtk2::WebKit::Mechanize object.

Loads $url.
Evaluates $js_str in the context of the current page.
Submits first form on pages using $args{fields}.

Returns page title.
Returns current page source.
At present it uses document.body.innerHTML. Therefore page source will not be identical to the one sent by server.

Boris Sukholitko
CPAN ID: BOSU
boriss@gmail.com

This program is free software licensed under the...
The GNU Lesser General Public License (LGPL)
Version 2.1, February 1999
The full text of the license can be found in the LICENSE file included with this module.

WWW::Mechanize, Mozilla::Mechanize, Mozilla::Mechanize::GUITester