my $agent = Test::WWW::Mechanize( autocheck => 1 ); $agent->get( $homepage ); $agent->html_ok( "Valid HTML" );