NAME

Mozilla::Mechanize:Input - A small class to interface with the Input objects

SYNOPSIS

sorry, read the source for now

DESCRIPTION

The Mozilla::Mechanize::Input object is a thin wrapper around HTML input elements.

METHODS

Mozilla::Mechanize::Input->new( $ie_input )

Initialize a new object.

$input->name

Return the input-control name.

$input->type

Return the type of the input control.

$input->value( [$value] )

Get/Set the value of the input control.

$input->select_value( [$value] )

XXX: to-do

Mark all options from the options collection with $value as selected and unselect all other options.

$input->radio_value( [$value] )

Locate all radio-buttons with the same name within this form. Now uncheck all values that are not equal to $value.

$input->click

Calls the click() method on the actual object. This may not work.

COPYRIGHT AND LICENSE

Copyright 2005, Scott Lanning <slanning@cpan.org>. All rights reserved.

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.