Help for this page
<h1>My awesome page!</h1>
<h1 id="pagetitle">My awesome page!</h1>
$mech->scraped_id_is( 'pagetitle', 'My Awesome Page!' );