It only makes sense that eventually I'd put out a WWW::Mechanize module that did testing, doesn't it?
Test::WWW::Mechanize is a subclass of WWW::Mechanize that incorporates features that make sense for doing web application testing. For example:
$mech->get( $page ); $mech->title_is( "Invoice Status", "Make sure we're on the invoice page" ); $mech->content_like( qr/Unpaid/ );
Re:You mean....
petdance on 2004-06-29T03:01:32
I really don't suggest putting actual code in your tests. Instead of:useisa_ok(my $a = WWW::Mechanize->new, "WWW::Mechanize");I'm not telling you, Randal, but other peole who might be reading, so you don't have to argue with it.my $a = WWW::Mechanize->new;
isa_ok( $a, "WWW::Mechanize" );:-)