NAME

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

SYNOPSIS

$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"');

DESCRIPTION

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.).

CONSTRUCTION

Gtk2::WebKit::Mechanize->new;

Constructs new Gtk2::WebKit::Mechanize object.

METHODS

$mech->get($url)

Loads $url.

$mech->run_js($js_str)

Evaluates $js_str in the context of the current page.

$mech->submit_form(%args)

Submits first form on pages using $args{fields}.

ACCESSORS

$mech->title

Returns page title.

$mech->content

Returns current page source.

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

AUTHOR

Boris Sukholitko
CPAN ID: BOSU
boriss@gmail.com

COPYRIGHT

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.

SEE ALSO

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