Update of /cvsroot/http-webtest/HTTP-WebTest/lib/HTTP/WebTest/Plugin
In directory usw-pr-cvs1:/tmp/cvs-serv15735/lib/HTTP/WebTest/Plugin
Modified Files:
Click.pm
Log Message:
Added docs
Index: Click.pm
===================================================================
RCS file: /cvsroot/http-webtest/HTTP-WebTest/lib/HTTP/WebTest/Plugin/Click.pm,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** Click.pm 12 May 2002 13:35:35 -0000 1.5
--- Click.pm 12 May 2002 14:02:57 -0000 1.6
***************
*** 9,16 ****
=head1 SYNOPSIS
! Not Applicable
=head1 DESCRIPTION
=cut
--- 9,27 ----
=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 allows to use names of links and button on HTML pages to
+ build test requests.
+
=cut
***************
*** 27,31 ****
--- 38,60 ----
=head2 click_button
+ Given name of submit button (i.e. C<<input type="submit">> tag inside
+ of C<<form>> tag) on previosly requested HTML page builds test request
+ to the submitted page.
+
+ Note that you still need to pass all form parameters yourself using
+ C<params> test parameter.
+
+ =head3 Example
+
+ See example in L<HTTP::WebTest::Cookbook|HTTP::WebTest::Cookbook>.
+
=head2 click_link
+
+ Given name of link (i.e. C<<a>> tag) on previosly requested HTML page
+ builds test request to the linked page.
+
+ =head3 Example
+
+ See example in L<HTTP::WebTest::Cookbook|HTTP::WebTest::Cookbook>.
=cut
|