# $Id: Click.pm,v 1.18 2003/09/05 20:01:51 m_ilya Exp $
package HTTP::WebTest::Plugin::Click;
=head1 NAME
HTTP::WebTest::Plugin::Click - Click buttons and links on web page
=head1 SYNOPSIS
plugins = ( ::Click )
test_name = Some test
click_link = Name of the link
end_test
test_name = Another test
click_button = Name of the button
end_test
=head1 DESCRIPTION
This plugin lets you use the names of links and buttons on HTML pages to
build test requests.
=cut
use strict;
use HTML::TokeParser;
use URI;
use base qw(HTTP::WebTest::Plugin);
=head1 TEST PARAMETERS
=for pod_merge copy opt_params
=head2 click_button
Given name of submit button (i.e. C<> tag or
C<> inside of C<> tag) on previously
requested HTML page, builds test request to the submitted page.
Note that you still need to pass all form parameters yourself using
C test parameter.
=head3 Example
See example in L.
=head2 click_link
Given name of link (i.e. C<> tag) on previosly requested HTML
page, builds test request to the linked page.
=head3 Example
See example in L.
=head2 form_name
Give form name attribute (i.e. C<