* Gabor Szabo <[EMAIL PROTECTED]> [2006-07-06 17:25]: > Using Test::WWW::Mechanize 1.10 I am trying to > $w->page_links_ok(); > > on a page that has an e-mail address in it and the test fails. > > How could I tell TWM not to bother with the mailto links on the page?
There’s no official way. Until Andy fixes it somehow, you can hack it: package Test::WWW::Mechanize::CheckOnlyHTTPURI; our @ISA = qw( Test::WWW::Mechanize ); sub _check_links_status { my $self = shift; my $urls = shift; $urls = [ grep m!^s?https?:!, @$urls ]; return $self->SUPER::_check_links_status( $urls, @_ ); } Regards, -- Aristotle Pagaltzis // <http://plasmasturm.org/>