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: 5789
Status: resolved
Priority: 0/
Queue: WWW-Mechanize

People
Owner: Nobody in particular
Requestors: lannings [...] who.int
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: 1.05_02
Fixed in: (no value)



Date: Wed, 24 Mar 2004 17:11:02 +0100 (CET)
From: Scott Lanning <lannings [...] who.int>
To: bug-www-mechanize [...] rt.cpan.org
Subject: select numbered item
Something I liked was the recently added `select' method, to select from a dropdown list. An idea I had for this is kind of like `set_visible' method, except that it has nothing to do with visibility. What I mean is that maybe you could set a particular number of item from the list, like say the 3rd one, rather than having to specify the name. I'd have to look at HTML::Form more to see if that's possible; I think so using the `possible_values' method. Not sure about the interface though as the name could just as well be a number. I guess there is already a `form_number', so maybe `select_number'.
[lannings@who.int - Wed Mar 24 11:12:23 2004]: Show quoted text
> Something I liked was the recently added `select' > method, to select from a dropdown list. An idea I had > for this is kind of like `set_visible' method, > except that it has nothing to do with visibility. > What I mean is that maybe you could set a particular > number of item from the list, like say the 3rd one, > rather than having to specify the name. I'd have to > look at HTML::Form more to see if that's possible; > I think so using the `possible_values' method. > Not sure about the interface though as the name > could just as well be a number. I guess there is > already a `form_number', so maybe `select_number'.
How about this? =head2 $mech->select($name, {n => 3} ); That would be more consistent with what we are doing elsewhere. Would you like to contribute a patch that adds the appropriate code, docs, and updates to the test suite? We'll give you credit in 'Changes', and massage your code a little if it needs it. I think it could be a useful feature as well. Mark
[MARKSTOS - Mon Oct 18 22:57:32 2004]: Show quoted text
> =head2 $mech->select($name, {n => 3} ); > > That would be more consistent with what we are doing elsewhere. Would > you like to contribute a patch that adds the appropriate code, docs, > and updates to the test suite?
I'll give it a try.
Date: Thu, 21 Oct 2004 21:45:43 -0500
From: Mark Stosberg <mark [...] summersault.com>
To: "mark [...] summersault.com via RT" <bug-WWW-Mechanize [...] rt.cpan.org>
Subject: Fwd: Re: [mech-dev]Re: [cpan #5789] wish: select numbered item from <select> list
RT-Send-Cc:
Download (untitled)
message/rfc822 13.9k

Message body is not shown because it is too large.