To: | bug-WWW-Mechanize [...] rt.cpan.org |
Subject: | ->select |
Date: | Mon, 26 Apr 2004 14:56:17 -0400 |
From: | Mark Jason Dominus <mjd [...] plover.com> |
1. The return value of the ->select method is not documented.
2. The ->select method is documented in the section on "Form
submission methods", but it should be in the section on "Form field
filling methods"
3. It appears that ->select returns the current selection of the
specified "SELECT" widget. This is not good behavior. It should
return success if the specified selection was successfully
executed. There should be a separate method for querying the
values already in the form. I suggest
$a->form_value($name)
which would return the appropriate string value, or, if there was
no widget with the specified name, undef. The ->form_value method
could then be used to determine wheher a particular widget existed,
and, if so, what its value was.