use Mojo::DOM; my $mojo = Mojo::DOM->new( $mech->content); print $mojo->at( 'div.testklasse a' )->text;