CGI::Test::Form::Group(3pm) | User Contributed Perl Documentation | CGI::Test::Form::Group(3pm) |
CGI::Test::Form::Group - Records groups of box-type widgets
# $form is a CGI::Test::Form object use CGI::Test; my $rgroup = $form->radio_groups; ok 1, defined $rgroup; my @title = $rgroup->widgets_in("title"); my ($mister) = grep { $_->value eq "Mr" } @title; ok 2, $mister->is_checked;
This class is a container for box-type widgets, i.e. radio buttons and checkboxes, which may be groupped by name.
It can be queried to easily retrieve widgets belonging to a group, or to get all the group names.
It is also used internally by "CGI::Test" to keep track of associated radio buttons, so that checking one automatically unchecks the others in the same group.
The following features are available:
The original author is Raphael Manfredi.
Steven Hilton was long time maintainer of this module.
Current maintainer is Alexander Tokarev <tokarev@cpan.org>.
2022-06-10 | perl v5.34.0 |