Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

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

Report information
The Basics
Id: 7137
Status: rejected
Priority: 0/
Queue: Test-WWW-Mechanize

People
Owner: Nobody in particular
Requestors: PRL [...] cpan.org
Cc:
AdminCc:

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



Subject: wish: add links_found method
links_found( $links [, $msg ] ) would nicely do this: ok( defined $mech->find_link(text => text), $msg ) and links_found_like( $regex [, $msg ] ) would nicely do this: ok( defined $mech->find_link(text_regex => $qr), $msg ) For that matter, regexes need not be explicitly noted. This could work by using ref() in the source of links_found(): my $links = ( 'index.html' , qr/download/i ); links_found( $links ); The same goes for all the method_name_[is|like] methods. Best Regards, Phil