Mozilla::Mechanize::Input - A small class to interface with the Input objects
sorry, read the source for now
The Mozilla::Mechanize::Input object is a thin wrapper around HTML input elements.
Mozilla::Mechanize::Input
Initialize a new object. $input_node is a Mozilla::DOM::HTMLElement (or a node that can be QueryInterfaced to one); specifically, it must be an HTMLInputElement, an HTMLButtonElement, an HTMLSelectElement, or an HTMLTextAreaElement. $moz is a Mozilla::Mechanize object. (This latter is a hack for `click', so that new pages can load in the browser. The GUI has to be able to enter its main loop. If you don't plan to use that method, you don't have to pass it in.)
Return the input-control name.
Return the type of the input control. Note: for <select>, this returns 'select-one' for single select, and 'select-multiple' for multiple. (I don't know why.)
Get/Set the value of the input control.
Mark all options with $value as selected and unselect all other options.
$value
Locate all radio-buttons with the same name within this form. Now uncheck all values that are not equal to $value.
Calls the click() method on the actual object.
click()
Copyright 2005,2009 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.
To install Mozilla::Mechanize, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Mozilla::Mechanize
CPAN shell
perl -MCPAN -e shell install Mozilla::Mechanize
For more information on module installation, please visit the detailed CPAN module installation guide.