CGI::Test::Form::Widget::Input(3pm) | User Contributed Perl Documentation | CGI::Test::Form::Widget::Input(3pm) |
CGI::Test::Form::Widget::Input - Abstract representation of an input field
# Inherits from CGI::Test::Form::Widget
This class is the abstract representation of a text input field, i.e. a text field, a password field, a file upload field or a text area.
To simulate user input in those fields, there are a set of routines to "prepend()", "append()", "replace()", "clear()" or even run existing text through "filter()".
The interface is the same as the one described in CGI::Test::Form::Widget, with the following additions:
There are a number of convenience routines that are wrappers on "set_value()":
$input->filter(sub { s/this/that/g });
to replace all instances of "this" by "that" within the input text.
There are additional predicates to distinguish between the various input fields:
The original author is Raphael Manfredi.
Steven Hilton was long time maintainer of this module.
Current maintainer is Alexander Tokarev <tokarev@cpan.org>.
CGI::Test::Form::Widget(3), CGI::Test::Form::Widget::Input::File(3), CGI::Test::Form::Widget::Input::Password(3), CGI::Test::Form::Widget::Input::Text_Area(3), CGI::Test::Form::Widget::Input::Text_Field(3).
2022-06-10 | perl v5.34.0 |