Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the WWW-Mechanize CPAN distribution.

Report information
The Basics
Id: 6071
Status: resolved
Priority: 0/
Queue: WWW-Mechanize

People
Owner: MARKSTOS [...] cpan.org
Requestors: mjd [...] porpoise.net.isc.upenn.edu
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Date: Mon, 19 Apr 2004 14:23:36 -0400 (EDT)
From: mjd [...] porpoise.net.isc.upenn.edu (Mark Dominus)
To: undisclosed-recipients: ;

Message body not shown because it is not plain text.

RT-Send-CC: petdance
[mjd@porpoise.net.isc.upenn.edu - Mon Apr 19 14:23:32 2004]: Show quoted text
> Re version1.02: > > The return value of ->set_visible is not documented. > If ->set_visible hass no meaningful return value, I suggest > that you make it return success when it was successfully > able to set the form fields, and failure otherwise. > > For example, ->set_visible("a", "b") might fail on a form with > only one field. > ~b mjd@plover.com
How about this: # return the set and unset that were passed in. if (my ($set,$unset) = $mech->set_visible('dogs','cats') and !$unset # all inputs were set! } # else { # examine unset inputs to debug. } ##### That way, if setting any value doesn't happen, you have a way to track down exactly which one it was. Mark
A couple of years later, the return value of set_visible() is now documented, according to what the code has been doing. I recommend resolving this ticket. Mark